public override void Update(GameTime gameTime) { TextBoxHitBox = HitboxUpdater.UpdateHitbox(GamePosition, HitBoxWidth, HitBoxHeight, this.InCameraWorld); IsFocused = ClickSystem.IsInFocus(TextBoxHitBox, this.InCameraWorld, IsFocused); TextBoxInputSystem.InputTextBox(IsFocused, gameTime, Graphic, TextBoxHitBox); TextBoxInput = TextBoxInputSystem.TextStringReturned; }
void Start() { clickSystem = GameObject.Find("System").transform.Find("Click System").GetComponent <ClickSystem>(); farms = new List <FarmManager>(); getFarms(); ACstart = false; acTimer = 0; wait = new WaitForSeconds(0.0001f); }
public override void Update(GameTime gameTime) { CharacterHitbox = HitboxUpdater.UpdateHitbox(GamePosition, 32, 32, this.InCameraWorld); bool Click = ClickSystem.IsClickedOn(CharacterHitbox, this.InCameraWorld); if (Click) { Graphic.GraphicColor = Color.Black; } }
public override void EditModeUpdate(GameTime gameTime) { PanelHitbox = HitboxUpdater.UpdateHitbox(GamePosition, HitBoxWidth, HitBoxHeight, this.InCameraWorld); IsFocused = ClickSystem.IsInFocus(PanelHitbox, this.InCameraWorld, IsFocused); if (IsFocused && ClickSystem.IsMouseDown()) { MouseState CurrentMouseState = Mouse.GetState(); PlaceGraphic(CurrentMouseState.X - 5, CurrentMouseState.Y - 16); } }
public override void Update(GameTime gamtime) { ButtonHitbox = HitboxUpdater.UpdateHitbox(GamePosition, 32, 32, this.InCameraWorld); ToggleClick = ClickSystem.IsClickedOnToggle(ButtonHitbox, this.InCameraWorld, ToggleClick); if (ToggleClick) { Graphic.GraphicColor = new Color(Color.OrangeRed, 255); } else { Graphic.GraphicColor = new Color(Color.Blue, 255); } }
public override void Update(GameTime gameTime) { ButtonHitbox = HitboxUpdater.UpdateHitbox(GamePosition, 32, 32, this.InCameraWorld); IsToggled = ClickSystem.IsClickedOnToggle(ButtonHitbox, this.InCameraWorld, IsToggled); if (IsToggled) { Graphic.GraphicColor = Color.Azure; } else { Graphic.GraphicColor = Color.Blue; } }
public override void Update(GameTime GameTime) { ButtonHitbox = HitboxUpdater.UpdateHitbox(GamePosition, 32, 32, this.InCameraWorld); IsClicked = ClickSystem.IsClickedOn(ButtonHitbox, this.InCameraWorld); if (IsClicked) { Graphic.GraphicColor = new Color(Color.OrangeRed, 255); } else { Graphic.GraphicColor = new Color(Color.White, 255); } }