mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
fix some popups (#927)
This commit is contained in:
@@ -13,8 +13,13 @@ export component InputProfileDialog inherits Window {
|
||||
in-out property profile_name <=> InputProfileData.profile_name;
|
||||
in-out property deadzone <=> InputProfileData.deadzone;
|
||||
VerticalBox {
|
||||
alignment: start;
|
||||
|
||||
HorizontalBox {
|
||||
alignment: center;
|
||||
vertical-stretch: 0;
|
||||
LineEdit {
|
||||
vertical-stretch: 0;
|
||||
placeholder-text: @tr("Enter profile name to create or modify");
|
||||
preferred-width: 400px;
|
||||
edited(text) => {
|
||||
@@ -24,6 +29,7 @@ export component InputProfileDialog inherits Window {
|
||||
}
|
||||
|
||||
HorizontalBox {
|
||||
vertical-stretch: 0;
|
||||
alignment: center;
|
||||
Text {
|
||||
text: @tr("Deadzone Percentage");
|
||||
@@ -46,6 +52,7 @@ export component InputProfileDialog inherits Window {
|
||||
}
|
||||
|
||||
HorizontalBox {
|
||||
vertical-stretch: 0;
|
||||
alignment: center;
|
||||
Switch {
|
||||
text: @tr("Use DirectInput");
|
||||
@@ -57,7 +64,10 @@ export component InputProfileDialog inherits Window {
|
||||
}
|
||||
|
||||
HorizontalBox {
|
||||
alignment: center;
|
||||
vertical-stretch: 0;
|
||||
Button {
|
||||
vertical-stretch: 0;
|
||||
text: @tr("Start Profile Creation Wizard");
|
||||
enabled: InputProfileData.profile_name != "" && InputProfileData.profile_name != "default";
|
||||
clicked => {
|
||||
@@ -65,5 +75,9 @@ export component InputProfileDialog inherits Window {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
vertical-stretch: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,16 +78,19 @@ export component NetplayCreate inherits Window {
|
||||
}
|
||||
}
|
||||
|
||||
if NetplayData.game_name == "": Button {
|
||||
text: @tr("Select ROM");
|
||||
clicked => {
|
||||
select_rom(NetplayData.rom_dir);
|
||||
HorizontalBox {
|
||||
alignment: center;
|
||||
if NetplayData.game_name == "": Button {
|
||||
text: @tr("Select ROM");
|
||||
clicked => {
|
||||
select_rom(NetplayData.rom_dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
if NetplayData.game_name != "": Button {
|
||||
text: NetplayData.game_name;
|
||||
clicked => {
|
||||
select_rom(NetplayData.rom_dir);
|
||||
if NetplayData.game_name != "": Button {
|
||||
text: NetplayData.game_name;
|
||||
clicked => {
|
||||
select_rom(NetplayData.rom_dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user