Added basic light controls to the game and added more content spawnpoints. Adjusted values a bit.
This commit is contained in:
@@ -4,7 +4,7 @@ public partial class UIHandler : Control
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
GetNode<ColorPickerButton>("./MainUI/HeaderContainer/Header/LightColor").Color = GameData.lightColor;
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
@@ -13,4 +13,10 @@ public partial class UIHandler : Control
|
||||
|
||||
}
|
||||
|
||||
public void ChangeColor(Color color)
|
||||
{
|
||||
GameData.lightColor = color;
|
||||
LightHandler.RedrawLights(color);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user