-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Layout Editor running out of repositionable controls #958
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// Fixes Layout Editor only having 22 repositionable controls | ||
class RscDisplayOptionsLayout { | ||
class controlsBackground { | ||
class Element021; | ||
#define ADD_ELEMENT(var1) class Element##var1: Element021 {\ | ||
idc = __EVAL(12000 + var1);\ | ||
onMouseEnter = "with uinamespace do {['mouseEnter',_this,''] call RscDisplayOptionsLayout_script;};";\ | ||
onMouseExit = "with uinamespace do {['mouseExit',_this,''] call RscDisplayOptionsLayout_script;};";\ | ||
onMouseHolding = "with uinamespace do {['mouseMoving',_this,''] call RscDisplayOptionsLayout_script;};";\ | ||
onMouseMoving = "with uinamespace do {['mouseMoving',_this,''] call RscDisplayOptionsLayout_script;};";\ | ||
onMouseButtonDown = "with uinamespace do {['mouseButtonDown',_this,''] call RscDisplayOptionsLayout_script;};";\ | ||
onMouseButtonUp = "with uinamespace do {['mouseButtonUp',_this,''] call RscDisplayOptionsLayout_script;};";\ | ||
} | ||
ADD_ELEMENT(022); | ||
ADD_ELEMENT(023); | ||
ADD_ELEMENT(024); | ||
ADD_ELEMENT(025); | ||
ADD_ELEMENT(026); | ||
ADD_ELEMENT(027); | ||
ADD_ELEMENT(028); | ||
ADD_ELEMENT(029); | ||
ADD_ELEMENT(030); | ||
ADD_ELEMENT(031); | ||
ADD_ELEMENT(032); | ||
ADD_ELEMENT(033); | ||
ADD_ELEMENT(034); | ||
ADD_ELEMENT(035); | ||
ADD_ELEMENT(036); | ||
ADD_ELEMENT(037); | ||
ADD_ELEMENT(038); | ||
ADD_ELEMENT(039); | ||
ADD_ELEMENT(040); | ||
ADD_ELEMENT(041); | ||
ADD_ELEMENT(042); | ||
ADD_ELEMENT(043); | ||
ADD_ELEMENT(044); | ||
ADD_ELEMENT(045); | ||
ADD_ELEMENT(046); | ||
ADD_ELEMENT(047); | ||
ADD_ELEMENT(048); | ||
ADD_ELEMENT(049); | ||
ADD_ELEMENT(050); | ||
ADD_ELEMENT(051); | ||
ADD_ELEMENT(052); | ||
ADD_ELEMENT(053); | ||
ADD_ELEMENT(054); | ||
ADD_ELEMENT(055); | ||
ADD_ELEMENT(056); | ||
ADD_ELEMENT(057); | ||
ADD_ELEMENT(058); | ||
ADD_ELEMENT(059); | ||
ADD_ELEMENT(060); | ||
ADD_ELEMENT(061); | ||
ADD_ELEMENT(062); | ||
ADD_ELEMENT(063); | ||
ADD_ELEMENT(064); | ||
ADD_ELEMENT(065); | ||
ADD_ELEMENT(066); | ||
ADD_ELEMENT(067); | ||
ADD_ELEMENT(068); | ||
ADD_ELEMENT(069); | ||
ADD_ELEMENT(070); | ||
ADD_ELEMENT(071); | ||
ADD_ELEMENT(072); | ||
ADD_ELEMENT(073); | ||
ADD_ELEMENT(074); | ||
ADD_ELEMENT(075); | ||
ADD_ELEMENT(076); | ||
ADD_ELEMENT(077); | ||
ADD_ELEMENT(078); | ||
ADD_ELEMENT(079); | ||
ADD_ELEMENT(080); | ||
ADD_ELEMENT(081); | ||
ADD_ELEMENT(082); | ||
ADD_ELEMENT(083); | ||
ADD_ELEMENT(084); | ||
ADD_ELEMENT(085); | ||
ADD_ELEMENT(086); | ||
ADD_ELEMENT(087); | ||
ADD_ELEMENT(088); | ||
ADD_ELEMENT(089); | ||
ADD_ELEMENT(090); | ||
ADD_ELEMENT(091); | ||
ADD_ELEMENT(092); | ||
ADD_ELEMENT(093); | ||
ADD_ELEMENT(094); | ||
ADD_ELEMENT(095); | ||
ADD_ELEMENT(096); | ||
ADD_ELEMENT(097); | ||
ADD_ELEMENT(098); | ||
ADD_ELEMENT(099); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are the same config values set in each element? Aren't they inherited?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Eventhandlers are added by script. So no Element000->021 doesn't have them so we need to add them. Which is what's happening here.
But how about we just make Element022 with the Eventhandlers and just have all the others inherit from that? Less code in the preprocessed config in the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will take a look at the master config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it looks in the displays init script:
Strangely, in a few other places it just iterates through the child classes instead of assuming 0...21. /shrug