mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix CustomizeObjectLayer ids moving around when multiple objects are selected
This commit is contained in:
parent
7cc1cd46fd
commit
9ee0994a0e
1 changed files with 28 additions and 12 deletions
|
@ -27,13 +27,13 @@ $register_ids(CustomizeObjectLayer) {
|
|||
0,
|
||||
"ok-button",
|
||||
"info-button",
|
||||
|
||||
// 2
|
||||
"base-tab-button",
|
||||
"detail-tab-button",
|
||||
"base-hsv-button",
|
||||
"detail-hsv-button",
|
||||
"text-tab-button",
|
||||
|
||||
// 7
|
||||
"player-color-1-button",
|
||||
"player-color-2-button",
|
||||
"light-bg-button",
|
||||
|
@ -48,24 +48,40 @@ $register_ids(CustomizeObjectLayer) {
|
|||
"channel-8-button",
|
||||
"channel-9-button",
|
||||
"channel-custom-button",
|
||||
|
||||
// 21
|
||||
"select-channel-up-button",
|
||||
"select-channel-down-button",
|
||||
"select-channel-button",
|
||||
|
||||
// 24
|
||||
"split-text-button",
|
||||
"clear-text-button",
|
||||
|
||||
// 26
|
||||
"next-free-button",
|
||||
|
||||
"copy-button",
|
||||
"paste-button",
|
||||
|
||||
"browse-button",
|
||||
|
||||
"glow-toggle"
|
||||
// 27
|
||||
);
|
||||
|
||||
if (m_targetObject) {
|
||||
setIDs(
|
||||
m_buttonMenu,
|
||||
27,
|
||||
"copy-button",
|
||||
"paste-button",
|
||||
|
||||
"browse-button",
|
||||
|
||||
"glow-toggle"
|
||||
);
|
||||
}
|
||||
else {
|
||||
setIDs(
|
||||
m_buttonMenu,
|
||||
27,
|
||||
"browse-button",
|
||||
|
||||
"glow-toggle"
|
||||
);
|
||||
}
|
||||
|
||||
auto tabsLayout = RowLayout::create()
|
||||
->setAxisAlignment(AxisAlignment::Center)
|
||||
->setCrossAxisAlignment(AxisAlignment::Center);
|
||||
|
|
Loading…
Reference in a new issue