Logo

Replacing Select Button

Register Log In Back To Forums

Post #1 · Posted at 2016-09-06 03:01:08pm 7.5 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
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:

Quote
UsePlayerSelectMenu=true
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.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #2 · Posted at 2016-09-10 09:51:53pm 7.5 years ago

Offline ZTS
ZTS Avatar Member
138 Posts
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
Quote
[CodeDetector]
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
}
}

Get Rave It Out! https://sites.google.com/view/riodevs/home
Want your theme made? I take commissions, PM for details.
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 4% · Database: 4% · Server Time: 2024-03-28 11:46:30
This page took 0.004 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language