1using System.Collections.Generic;
36 public List<Thing>
grid =
new List<Thing>(
new Thing[20]);
58 EMono.player.hotbarPage = value;
79 EMono.player.flags.toggleHotbarHighlightDisabled = true;
80 transHighlightSwitch.SetActive(enable: false);
92 imageHighlight.transform.SetParent(base.transform, worldPositionStays:
false);
103 b.index = i % 10 + 10 *
page;
106 index = i % 10 + 10 * page
114 list.onBeforeRedraw = delegate
117 for (
int k = 0; k <
grid.Count; k++)
141 buttonSwitchPage.mainText.text = (
page + 1).ToString() ??
"";
143 list.onAfterRedraw = delegate
150 obj.skinRoot = GetComponent<SkinRoot>();
186 SE.Play(
"switch_hotbar");
196 buttonHotItem.item = hotItem;
197 buttonHotItem.icon.material = (hotItem.UseUIObjMaterial ? EMono.core.refs.matUIObj :
null);
199 buttonHotItem.interactable =
true;
250 public void Select(
int index,
bool fromHotkey =
false)
301 imageHighlight.transform.position =
selectedButton.transform.position;
315 return base.CanShowContextMenu();
325 extra.iconSize = (int)a;
327 }, 0f, EMono.setting.ui.iconSizes.Count - 1, isInt:
true);
331 extra.showShortcut = a;
static GameSetting setting
List< Vector2 > iconSizes
virtual void SetImage(Image icon)
static void TryShowGuide(UIList list)
bool toggleHotbarHighlightDisabled
void ResetCurrentHotItem()
void EndTurn(bool consume=true)
HotItemNoItem hotItemNoItem
void SetCurrentHotItem(HotItem item)
override bool CanUse(Chara c)
override bool OnUse(Chara c)
virtual HotItem GetHotItem()
List< ButtonPair > buttons
override void Add(object item)
virtual void Refresh(bool highlightLast=false)