Opravena chyba se špatně převedenými hitboxy UI elementů. Opravena chyba s měněním screenu, kdy stará zůstala aktivní. Přidány elementy pro překlikávání kamer.

This commit is contained in:
Perry 2026-01-29 19:37:40 +01:00
parent 2cd215cc33
commit 8a3267cc4b
8 changed files with 56 additions and 19 deletions

View file

@ -22,6 +22,9 @@ public class Screen {
}
public static void SetScreen(string id) {
if (CurrentScreen != null){
CurrentScreen.Active = false;
}
CurrentScreen = Screens[id];
CurrentScreen.Active = true;
}
@ -62,6 +65,9 @@ public class Screen {
}
private void ProcessMouseInput(MouseState mouseState) {
if (!Active){
return;
}
foreach (var element in elements.Values){
if (!element.Pressable) continue;