public Vector2 GetMessageWindowPosition(EODHeight height, EODTextTips tips, bool expanded) { var topLeftHeight = height; if (height == EODHeight.TallTall) { topLeftHeight = EODHeight.Tall; } var position = GetTopLeft(topLeftHeight); if (tips == EODTextTips.Long) { position += (Vector2)Script.GetControlProperty("EODMsgWinLong", "position"); } else { position += (Vector2)Script.GetControlProperty("EODMsgWinShort", "position"); } if (height == EODHeight.TallTall && expanded) { position += (Vector2)Script.GetControlProperty("EODDoublePanelMsgOffset"); } return(position); }
public Vector2 GetChromeOffset(EODHeight height) { switch (height) { case EODHeight.Tall: case EODHeight.TallTall: return(new Vector2(0, -20)); } return(Vector2.Zero); }
public Vector2 GetPanelPosition(EODHeight height) { switch (height) { case EODHeight.TallTall: return(GetTopLeft(EODHeight.TallTall) + (Vector2)Script.GetControlProperty("EODBackgroundOffsetTallTall")); default: return(GetTopLeft(height)); } }
public Vector2 GetMessageWindowTextPosition(EODHeight height, bool expanded) { var topLeftHeight = height; if (height == EODHeight.TallTall) { topLeftHeight = EODHeight.Tall; } var position = GetTopLeft(topLeftHeight) + (Vector2)Script.GetControlProperty("MsgWinTextEntry", "position"); if (height == EODHeight.TallTall && expanded) { position += (Vector2)Script.GetControlProperty("EODDoublePanelMsgOffset"); } return(position); }
public Vector2 GetOffset(EODHeight height) { switch (height) { case EODHeight.Normal: return((Vector2)Script.GetControlProperty("EODActiveOffset")); case EODHeight.Tall: return((Vector2)Script.GetControlProperty("EODActiveOffsetTall")); case EODHeight.Trade: return((Vector2)Script.GetControlProperty("EODActiveOffsetTrade")); case EODHeight.TallTall: return((Vector2)Script.GetControlProperty("EODActiveOffsetTallTall")); } throw new Exception("Unknown eod height"); }
public Vector2 GetTimerTextPosition(EODHeight height, bool expanded) { var topLeftHeight = height; if (height == EODHeight.TallTall) { topLeftHeight = EODHeight.Tall; var position = GetTopLeft(topLeftHeight) + (Vector2)Script.GetControlProperty("TimerTextEntry", "position"); if (expanded) { position += (Vector2)Script.GetControlProperty("EODDoublePanelMsgOffset"); } return(position); } else { return(GetTopLeft(height) + (Vector2)Script.GetControlProperty("TimerTextEntry", "position")); } }
public string GetHeightSuffix(EODHeight height, bool considerDoubleAsTall) { switch (height) { case EODHeight.Tall: return("Tall"); case EODHeight.TallTall: if (considerDoubleAsTall) { return("Tall"); } else { return(""); } default: return(""); } }
public Vector2 GetExpandBackPosition(EODHeight height) { return(GetPanelPosition(EODHeight.Tall) + (Vector2)Script.GetControlProperty("EODExpandBack", "position")); }
public Vector2 GetContractButtonPosition(EODHeight height) { return(Baseline + (Vector2)Script.GetControlProperty("EODContractButton", "position")); }
public Vector2 GetChromePosition(string control, EODHeight height) { return(Baseline + (Vector2)Script.GetControlProperty(control, "position") + GetChromeOffset(height)); }
/// <summary> /// Top left of the EOD, this is where the EOD plugin itself is placed /// </summary> /// <param name="height"></param> /// <returns></returns> public Vector2 GetTopLeft(EODHeight height) { return(Baseline - GetOffset(height)); }
public string GetHeightSuffix(EODHeight height) { return(GetHeightSuffix(height, false)); }
public Vector2 GetTimerTextPosition(EODHeight height) { return(GetTopLeft(height) + (Vector2)Script.GetControlProperty("TimerTextEntry", "position")); }