Твики (#491)
* Economy additions * Tweak implant cooldowns * Cult stuff * Random appearance aspect nuke ops fix * Auto shuttle enable on round end * Holy water threshold
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<Label Name="StatusLabel"/>
|
||||
<SliderIntInput Name="WithdrawSlider"/>
|
||||
<BoxContainer HorizontalExpand="True" VerticalExpand="True" VerticalAlignment="Bottom" Orientation="Horizontal">
|
||||
<LineEdit Name="PinLineEdit" HorizontalExpand="True" Text="Enter PIN"/>
|
||||
<LineEdit Name="PinLineEdit" HorizontalExpand="True" Text="{Loc 'atm-ui-enter-pin'}"/>
|
||||
<Button Name="WithdrawButton" Text="{Loc 'store-ui-default-withdraw-text'}"/>
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
|
||||
@@ -40,6 +40,7 @@ public sealed partial class AtmWindow : DefaultWindow
|
||||
StatusLabel.Text = cast.InfoMessage;
|
||||
BalanceLabel.Visible = false;
|
||||
Divider.Visible = false;
|
||||
StatusLabel.Visible = true;
|
||||
WithdrawSlider.Visible = false;
|
||||
PinLineEdit.Visible = false;
|
||||
WithdrawButton.Visible = false;
|
||||
@@ -50,13 +51,25 @@ public sealed partial class AtmWindow : DefaultWindow
|
||||
|
||||
BalanceLabel.Text = Loc.GetString("atm-ui-balance", ("balance", cast.AccountBalance));
|
||||
BalanceLabel.Visible = true;
|
||||
Divider.Visible = true;
|
||||
WithdrawSlider.Visible = true;
|
||||
PinLineEdit.Visible = true;
|
||||
WithdrawButton.Visible = true;
|
||||
|
||||
WithdrawSlider.MaxValue = cast.AccountBalance;
|
||||
WithdrawSlider.Value = Math.Min(WithdrawSlider.Value, cast.AccountBalance);
|
||||
if (cast.AccountBalance > 0)
|
||||
{
|
||||
Divider.Visible = true;
|
||||
StatusLabel.Visible = true;
|
||||
WithdrawSlider.Visible = true;
|
||||
PinLineEdit.Visible = true;
|
||||
WithdrawButton.Visible = true;
|
||||
|
||||
WithdrawSlider.MaxValue = cast.AccountBalance;
|
||||
WithdrawSlider.Value = Math.Min(WithdrawSlider.Value, cast.AccountBalance);
|
||||
return;
|
||||
}
|
||||
|
||||
Divider.Visible = false;
|
||||
StatusLabel.Visible = false;
|
||||
WithdrawSlider.Visible = false;
|
||||
PinLineEdit.Visible = false;
|
||||
WithdrawButton.Visible = false;
|
||||
}
|
||||
|
||||
protected override void FrameUpdate(FrameEventArgs args)
|
||||
|
||||
Reference in New Issue
Block a user