Post #1 · Publicado en 2016-09-06 03:01:08pm Hace 7.7 años
leadbman | |
---|---|
Member | |
263 Mensajes | |
Reg. 2016-02-01 | |
"Working On: 5thMix BGA bgchanges" |
Last updated: 2016-09-06 03:01pm
Hi all,
The theme I've been using is KENp's X2 theme and it uses the select button to access the "quick menu". In the metrics it looks like this:
Now I'd like to retain the functionality of these menus but allow them to be called by either holding start rather than select or by holding a menu button and pressing start or some other configuration. My setup only has a three button configuration on each players side for the front panel so I'd like to make this menu work with my setup.
Is there a way to change this code to allow the menu to be opened by another button combination rather than using the "Select" button?
Hope someone can help me out as I really like the way the menu works on the song wheel and I'd prefer not to change it to an old style menu if possible.
Cheers.
EDIT: I've changed the Branches script file to allow the options menu to load prior to the song loading. Not exactly what I wanted but at least I can access them prior to the song now.
The theme I've been using is KENp's X2 theme and it uses the select button to access the "quick menu". In the metrics it looks like this:
Quote
UsePlayerSelectMenu=true
SelectMenuAvailable=true
SelectMenuScreenName=(GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2()) and "ScreenPlayerOptionsR" or "ScreenPlayerOptions"
SelectMenuAvailable=true
SelectMenuScreenName=(GAMESTATE:IsExtraStage() or GAMESTATE:IsExtraStage2()) and "ScreenPlayerOptionsR" or "ScreenPlayerOptions"
Now I'd like to retain the functionality of these menus but allow them to be called by either holding start rather than select or by holding a menu button and pressing start or some other configuration. My setup only has a three button configuration on each players side for the front panel so I'd like to make this menu work with my setup.
Is there a way to change this code to allow the menu to be opened by another button combination rather than using the "Select" button?
Hope someone can help me out as I really like the way the menu works on the song wheel and I'd prefer not to change it to an old style menu if possible.
Cheers.
EDIT: I've changed the Branches script file to allow the options menu to load prior to the song loading. Not exactly what I wanted but at least I can access them prior to the song now.
Post #2 · Publicado en 2016-09-10 09:51:53pm Hace 7.7 años
ZTS | |
---|---|
Member | |
140 Mensajes | |
Not Set | |
Reg. 2015-01-13 | |
"But enough talk! Have at you!" |
Looks like you need to use CodeDetector for that. I don't really know exactly how to do it, but here's the general script
in metrics.ini
In ScreenSelectOverlay.lua
in metrics.ini
Quote
[CodeDetector]
codeName="some code here, like Up-Down for both at the same time or Up,Down for up then down"
codeName="some code here, like Up-Down for both at the same time or Up,Down for up then down"
In ScreenSelectOverlay.lua
Quote
local t = Def.ActorFrame {
Def.Actor {
Name="CodeController",
CodeMessageCommand=function(self, param)
Trace("CodeMessageCommand received.")
local codeName = param.Name -- code name, matches the one in metrics
local pn = param.PlayerNumber -- which player entered the code
--put your code here.
end
}
}
Def.Actor {
Name="CodeController",
CodeMessageCommand=function(self, param)
Trace("CodeMessageCommand received.")
local codeName = param.Name -- code name, matches the one in metrics
local pn = param.PlayerNumber -- which player entered the code
--put your code here.
end
}
}