Release 1.46

master
Kasi 2020-02-15 04:24:58 +00:00
parent 29e80216f1
commit 1c535885be
3 changed files with 10 additions and 3 deletions

View File

@ -66,14 +66,14 @@ namespace Globals
const std::int32_t BANK_PARENT = 12; const std::int32_t BANK_PARENT = 12;
const WidgetDef BANK_MAIN = { BANK_PARENT, 2 }; const WidgetDef BANK_MAIN = { BANK_PARENT, 2 };
const WidgetDef BANK_CLOSE = { BANK_PARENT, 2, 11 }; const WidgetDef BANK_CLOSE = { BANK_PARENT, 2, 11 };
const WidgetDef BANK_DEPOSIT_ALL = { BANK_PARENT, 41 }; const WidgetDef BANK_DEPOSIT_ALL = { BANK_PARENT, 40 };
const WidgetDef BANK_DEPOSIT_EQUIPMENT = { BANK_PARENT, 43 }; const WidgetDef BANK_DEPOSIT_EQUIPMENT = { BANK_PARENT, 42 };
const WidgetDef BANK_WITHDRAW_MODE_NOTED = { BANK_PARENT, 23 }; const WidgetDef BANK_WITHDRAW_MODE_NOTED = { BANK_PARENT, 23 };
const WidgetDef BANK_WITHDRAW_MODE_ITEM = { BANK_PARENT, 21 }; const WidgetDef BANK_WITHDRAW_MODE_ITEM = { BANK_PARENT, 21 };
const WidgetDef BANK_ITEM_CONTAINER_WIDGET = { BANK_PARENT, 11 }; // Used for scrolling, contains all items, middle of the bank interface const WidgetDef BANK_ITEM_CONTAINER_WIDGET = { BANK_PARENT, 11 }; // Used for scrolling, contains all items, middle of the bank interface
const WidgetDef BANK_TABS_CONTAINER = { BANK_PARENT, 9 }; // Has all Tab children const WidgetDef BANK_TABS_CONTAINER = { BANK_PARENT, 9 }; // Has all Tab children
const WidgetDef BANK_INVENTORY = { 15, 3 }; // When the bank is open, the Inventory has it's own widgets for items const WidgetDef BANK_INVENTORY = { 15, 3 }; // When the bank is open, the Inventory has it's own widgets for items
const std::int32_t BANK_WITHDRAW_QUANTITY_CHILDREN[5] = { 27, 29, 31, 33, 35 }; // 1, 5, 10, x, all, uses BANK_PARENT const std::int32_t BANK_WITHDRAW_QUANTITY_CHILDREN[5] = { 27, 29, 31, 32, 35 }; // 1, 5, 10, x, all, uses BANK_PARENT
const std::int32_t BANK_ENTER_PIN_PARENT = 213; const std::int32_t BANK_ENTER_PIN_PARENT = 213;
const WidgetDef BANK_ENTER_PIN_STATUS = { BANK_ENTER_PIN_PARENT, 10 }; // Text widget, has FIRST, SECOND, THIRD, FOURTH, Submitting in it const WidgetDef BANK_ENTER_PIN_STATUS = { BANK_ENTER_PIN_PARENT, 10 }; // Text widget, has FIRST, SECOND, THIRD, FOURTH, Submitting in it

View File

@ -7,6 +7,7 @@
#include <cstdint> #include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>
#include <functional>
/** /**
* @brief A namespace containing various functions related to the Mainscreen * @brief A namespace containing various functions related to the Mainscreen
@ -135,6 +136,8 @@ namespace Mainscreen
*/ */
bool WaitUpTextContains(std::uint32_t Duration, std::uint32_t Step, const std::vector<std::string>& UpTexts); bool WaitUpTextContains(std::uint32_t Duration, std::uint32_t Step, const std::vector<std::string>& UpTexts);
bool IsTileOn(const Tile& T);
/** /**
* @brief Clicks on a tile on the %mainscreen * @brief Clicks on a tile on the %mainscreen
* @return True if the tile was clicked * @return True if the tile was clicked
@ -142,6 +145,10 @@ namespace Mainscreen
*/ */
bool ClickTile(const Tile& T); bool ClickTile(const Tile& T);
bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance, std::function<bool()> Func);
bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance);
std::vector<Box> GetBlockingWidgetBoxes(); std::vector<Box> GetBlockingWidgetBoxes();
} }

Binary file not shown.