46 base.DrawSelf(spriteBatch);
48 float num2 = dimensions.Width + 1f;
50 bool flag = PlayerInput.ListeningTrigger ==
_keybind;
52 Color value = (flag ? Color.Gold : (base.IsMouseHovering ? Color.White :
Color.
Silver));
58 position.Y += 2f + num;
63 if (
string.IsNullOrEmpty(text))
68 value =
new Color(80, 80, 80);
75 position +=
new Vector2(0f, -3f);
77 GlyphTagHandler.GlyphsScale = 0.85f;
79 GlyphTagHandler.GlyphsScale = 1f;
95 for (
int j = 1;
j < list.Count;
j++)
106 for (
int i = 1; i < list.Count; i++)
108 text = text +
"/" + list[i];
120 "MouseLeft" =>
Lang.
menu[162].Value,
121 "MouseRight" =>
Lang.
menu[163].Value,
128 "Inventory" =>
Lang.
menu[154].Value,
130 "SmartSelect" =>
Lang.
menu[160].Value,
131 "SmartCursor" =>
Lang.
menu[161].Value,
132 "QuickMount" =>
Lang.
menu[158].Value,
133 "QuickHeal" =>
Lang.
menu[159].Value,
134 "QuickMana" =>
Lang.
menu[156].Value,
135 "QuickBuff" =>
Lang.
menu[157].Value,
136 "MapZoomIn" =>
Lang.
menu[168].Value,
137 "MapZoomOut" =>
Lang.
menu[169].Value,
138 "MapAlphaUp" =>
Lang.
menu[171].Value,
139 "MapAlphaDown" =>
Lang.
menu[170].Value,
152 "HotbarMinus" =>
Lang.
menu[174].Value,
153 "HotbarPlus" =>
Lang.
menu[175].Value,
154 "DpadRadial1" =>
Lang.
menu[186].Value,
155 "DpadRadial2" =>
Lang.
menu[187].Value,
156 "DpadRadial3" =>
Lang.
menu[188].Value,
157 "DpadRadial4" =>
Lang.
menu[189].Value,
158 "RadialHotbar" =>
Lang.
menu[190].Value,
159 "RadialQuickbar" =>
Lang.
menu[244].Value,
160 "DpadSnap1" =>
Lang.
menu[191].Value,
161 "DpadSnap2" =>
Lang.
menu[192].Value,
162 "DpadSnap3" =>
Lang.
menu[193].Value,
163 "DpadSnap4" =>
Lang.
menu[194].Value,
static Asset< DynamicSpriteFont > ItemStack
static string GenerateTag(int index)
void OnClickMethod(UIMouseEvent evt, UIElement listeningElement)
UIKeybindingListItem(string bind, InputMode mode, Color color)
string GenInput(List< string > list)
override void DrawSelf(SpriteBatch spriteBatch)
static LocalizedText[] menu
static string GetTextValue(string key)
static Vector2 DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
static Vector2 GetStringSize(DynamicSpriteFont font, string text, Vector2 baseScale, float maxWidth=-1f)
CalculatedStyle GetDimensions()
static void DrawSettingsPanel(SpriteBatch spriteBatch, Vector2 position, float width, Color color)
static Color Lerp(Color value1, Color value2, float amount)