public GuiElementHandbookListWithTooltips(
     ICoreClientAPI capi,
     ElementBounds bounds,
     Vintagestory.API.Common.Action <int> onLeftClick,
     List <GuiHandbookPage> elements = null
     ) : base(capi, bounds, onLeftClick, elements)
 {
     tooltipProvider = new ItemstackComponentBase(capi);
     dummySlot       = new DummySlot();
 }
Beispiel #2
0
 public TextBox(ICoreClientAPI capi, ElementBounds bounds, Vintagestory.API.Common.Action <string> OnTextChanged, CairoFont font) : base(capi, bounds, OnTextChanged, font)
 {
 }
Beispiel #3
0
 public SubCommand(Vintagestory.API.Common.Action <IPlayer, int, CmdArgs> command, string description, Dictionary <string, SubCommand> subCommands = null)
 {
     Command     = command;
     Description = description;
     SubCommands = subCommands ?? new Dictionary <string, SubCommand>();
 }