Describe your idea (If you have more than one idea, please open the rest in other issues)
Smart Glasses modules currently use the modid:itemname convention, this is inconsistent with how the rest of CC/AP handles similar objects such as peripherals. (Yes, generic peripherals do maintain the modid:name pattern but this is only used for generics.)
At this moment in time to be able to call a module, which is added by AP itself, you still have to state the advancedperipherals: prefix for the module to be accessible via code such as
local modules = peripheral.wrap("back")
local hasOverlay = modules.hasModule("advancedperipherals:overlay")
Describe alternatives you've considered if any
A simple map of modules, similar to how peripherals are handled and accessible via defined names, chat_box, player_detector, etc.
Modules can be mapped as overlay, night_vision, hotkey, keyboard, ...
Any future modules from either AP itself or potential addon developers would then easily be able to be integrated without having to memorise every mod ID.
Additional context
Related Conversation from AP discord channel
Linked Issues
No response
Describe your idea (If you have more than one idea, please open the rest in other issues)
Smart Glasses modules currently use the
modid:itemnameconvention, this is inconsistent with how the rest of CC/AP handles similar objects such as peripherals. (Yes, generic peripherals do maintain themodid:namepattern but this is only used for generics.)At this moment in time to be able to call a module, which is added by AP itself, you still have to state the
advancedperipherals:prefix for the module to be accessible via code such asDescribe alternatives you've considered if any
A simple map of modules, similar to how peripherals are handled and accessible via defined names,
chat_box,player_detector, etc.Modules can be mapped as
overlay,night_vision,hotkey,keyboard, ...Any future modules from either AP itself or potential addon developers would then easily be able to be integrated without having to memorise every mod ID.
Additional context
Related Conversation from AP discord channel
Linked Issues
No response