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:
parent
2cd215cc33
commit
8a3267cc4b
8 changed files with 56 additions and 19 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue