Skip to content

Commit

Permalink
Advanced config GUI tab
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Nov 26, 2022
1 parent 8b98636 commit 0f47946
Showing 1 changed file with 63 additions and 3 deletions.
66 changes: 63 additions & 3 deletions CSMazeConfigEditor/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Title="CSMaze Config" Icon="config.ico" SizeToContent="WidthAndHeight">
<Grid Margin="5">
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Content="Be aware that some settings may not work properly or cause issues until after restarting the game" Foreground="Red" Padding="0,0,0,0"/>
<TabControl Margin="0,25,0,0">
<TabControl Margin="0,25,0,25">
<TabItem Header="Basic">
<StackPanel>
<Label x:Name="viewportWidthLabel" Content="View Width — (xxx)" Tag="View Width"/>
Expand Down Expand Up @@ -74,7 +74,7 @@
</Slider.Tag>
</Slider>
<Label x:Name="turnSpeedLabel" Content="Turn Sensitivity — (xxx)" Tag="Turn Sensitivity"/>
<Slider x:Name="turnSpeedSlider" Minimum="1" Maximum="120" ValueChanged="Slider_ValueChanged">
<Slider x:Name="turnSpeedSlider" Minimum="1" Maximum="10" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="TURN_SPEED" HeaderLabel="{Binding ElementName=turnSpeedLabel, Mode=OneWay}"/>
</Slider.Tag>
Expand All @@ -83,9 +83,69 @@
</TabItem>
<TabItem Header="Advanced">
<StackPanel>

<Label x:Name="displayColumnsLabel" Content="Render Resolution (lower this to improve performance) — (xxx)" Tag="Render Resolution (lower this to improve performance)"/>
<Slider x:Name="displayColumnsSlider" Minimum="1" Maximum="120" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="DISPLAY_COLUMNS" HeaderLabel="{Binding ElementName=displayColumnsLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="monsterStartLabel" Content="Monster spawn override (seconds) — (xxx)" Tag="Monster spawn override (seconds)"/>
<Label x:Name="monsterStartInfoLabel" Content="Note: This will not affect levels with no monster" Foreground="Blue"/>
<Slider x:Name="monsterStartSlider" Minimum="-0.1" Maximum="999.9" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="MONSTER_START_OVERRIDE" HeaderLabel="{Binding ElementName=monsterStartLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="monsterMovementLabel" Content="Time between monster movements (seconds) — (xxx)" Tag="Time between monster movements (seconds)"/>
<Label x:Name="monsterMovementWarningLabel" Content="Warning: This will affect the rate at which lights flicker" Foreground="DarkOrange"/>
<Slider x:Name="monsterMovementSlider" Minimum="0.01" Maximum="10" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="MONSTER_MOVEMENT_WAIT" HeaderLabel="{Binding ElementName=monsterMovementLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="monsterSpotLabel" Content="Minimum time between spotted jumpscare sounds (seconds) — (xxx)" Tag="Minimum time between spotted jumpscare sounds (seconds)"/>
<Slider x:Name="monsterSpotSlider" Minimum="0.1" Maximum="60" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="MONSTER_SPOT_TIMEOUT" HeaderLabel="{Binding ElementName=monsterSpotLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="monsterRoamSoundDelayLabel" Content="Time between monster roaming sounds (seconds) — (xxx)" Tag="Time between monster roaming sounds (seconds)"/>
<Slider x:Name="monsterRoamSoundDelaySlider" Minimum="0.1" Maximum="60" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="MONSTER_ROAM_SOUND_DELAY" HeaderLabel="{Binding ElementName=monsterRoamSoundDelayLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="compassNormChargeLabel" Content="Normal compass recharge multiplier — (xxx)" Tag="Normal compass recharge multiplier"/>
<Slider x:Name="compassNormChargeSlider" Minimum="0.1" Maximum="10" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="COMPASS_CHARGE_NORM_MULTIPLIER" HeaderLabel="{Binding ElementName=compassNormChargeLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="compassBurnChargeLabel" Content="Burned compass recharge multiplier — (xxx)" Tag="Burned compass recharge multiplier"/>
<Slider x:Name="compassBurnChargeSlider" Minimum="0.1" Maximum="10" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="COMPASS_CHARGE_BURN_MULTIPLIER" HeaderLabel="{Binding ElementName=compassBurnChargeLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="compassChargeDelayLabel" Content="Delay before compass begins recharging (seconds) — (xxx)" Tag="Delay before compass begins recharging (seconds)"/>
<Slider x:Name="compassChargeDelaySlider" Minimum="0.1" Maximum="10" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="COMPASS_CHARGE_DELAY" HeaderLabel="{Binding ElementName=compassChargeDelayLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<Label x:Name="displayFovLabel" Content="Field of View — (xxx)" Tag="Field of View"/>
<Slider x:Name="displayFovSlider" Minimum="1" Maximum="100" ValueChanged="Slider_ValueChanged">
<Slider.Tag>
<local:ControlTag ConfigOption="DISPLAY_FOV" HeaderLabel="{Binding ElementName=displayFovLabel, Mode=OneWay}"/>
</Slider.Tag>
</Slider>
<CheckBox x:Name="drawMazeEdgeCheck" Content="Draw the edge of the maze as if it were a wall" Margin="0,10,0,5" Click="Check_Click" Tag="DRAW_MAZE_EDGE_AS_WALL"/>
<CheckBox x:Name="enableCollisionCheck" Content="Enable wall collision detection" Margin="0,5,0,5" Click="Check_Click" Tag="ENABLE_COLLISION"/>
<CheckBox x:Name="enableMonsterKillingCheck" Content="Enable monster engagement on collision" Margin="0,5,0,5" Click="Check_Click" Tag="ENABLE_MONSTER_KILLING"/>
<CheckBox x:Name="drawReflectionsCheck" Content="Draw wall and sky reflections on maze floor" Margin="0,5,0,10" Click="Check_Click" Tag="DRAW_REFLECTIONS"/>
</StackPanel>
</TabItem>
</TabControl>
<Button Content="Save" VerticalAlignment="Bottom" HorizontalAlignment="Right" Padding="20,1,20,1"/>
</Grid>
</Window>

0 comments on commit 0f47946

Please sign in to comment.