|
| GUIWindow_Chest (unsigned int chest_id) |
|
virtual | ~GUIWindow_Chest () |
|
virtual void | Update () |
|
| GUIWindow () |
|
| GUIWindow (WindowType windowType, unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int pButton, const String &hint=String()) |
|
virtual | ~GUIWindow () |
|
GUIButton * | CreateButton (int x, int y, int width, int height, int a6, int a7, UIMessageType msg, unsigned int msg_param, uint8_t hotkey, const String &label, const std::vector< Image * > &textures=std::vector< Image * >()) |
|
bool | Contains (unsigned int x, unsigned int y) |
|
void | DrawFlashingInputCursor (int uX, int uY, GUIFont *a2) |
|
int | DrawTextInRect (GUIFont *font, unsigned int x, unsigned int y, unsigned int color, const char *text, int rect_width, int reverse_text) |
|
int | DrawTextInRect (GUIFont *font, unsigned int x, unsigned int y, unsigned int color, String &str, int rect_width, int reverse_text) |
|
void | DrawText (GUIFont *font, int x, int y, unsigned short uFontColor, const char *str, bool present_time_transparency=false, int max_text_height=0, int uFontShadowColor=0) |
|
void | DrawText (GUIFont *font, int x, int y, unsigned short uFontColor, const String &str, bool present_time_transparency=false, int max_text_height=0, int uFontShadowColor=0) |
|
void | DrawTitleText (GUIFont *font, int horizontal_margin, int vertical_margin, unsigned __int16 uDefaultColor, const char *pInString, int line_spacing) |
|
void | DrawTitleText (GUIFont *font, int horizontal_margin, int vertical_margin, unsigned __int16 uDefaultColor, const String &str, int line_spacing) |
|
void | DrawShops_next_generation_time_string (GameTime time) |
|
void | HouseDialogManager () |
|
void | DrawMessageBox (bool inside_game_viewport) |
|
GUIButton * | GetControl (unsigned int uID) |
|
void | _41D08F_set_keyboard_control_group (int num_buttons, int a3, int a4, int a5) |
|
void | _41D73D_draw_buff_tooltip () |
|
virtual void | Release () |
|
void | DeleteButtons () |
|
См. определение в файле UIChest.h строка 10
void GUIWindow_Chest::Update |
( |
| ) |
|
|
virtual |
Переопределяет метод предка GUIWindow.
См. определение в файле UIChest.cpp строка 37
39 render->ClearZBuffer(0, 479);
46 auto uChestID = (
unsigned int)
ptr_1C;
48 int *v16 =
render->pActiveZBuffer;
49 render->ClearZBuffer(0, 479);
50 int chestBitmapId =
vChests[uChestID].uChestBitmapID;
58 render->DrawTextureAlphaNew(8 / 640.0
f, 8 / 480.0
f, chest_background);
60 for (
int item_counter = 0;
61 item_counter < chestWidthCells * chestHeghtCells; ++item_counter) {
62 int chest_item_index =
vChests[uChestID].pInventoryIndices[item_counter];
63 if (chest_item_index > 0) {
65 vChests[uChestID].igChestItems[chest_item_index - 1].GetIconName(),
68 int itemPixelWidth = item_texture->
GetWidth();
69 int itemPixelHeght = item_texture->GetHeight();
70 if (itemPixelWidth < 14) itemPixelWidth = 14;
71 if (itemPixelHeght < 14) itemPixelHeght = 14;
72 signed int X_offset = (((
signed int)((itemPixelWidth - 14) & 0xFFFFFFE0) + 32) - itemPixelWidth) / 2;
73 signed int Y_offset = (((
signed int)((itemPixelHeght - 14) & 0xFFFFFFE0) + 32) - itemPixelHeght) / 2;
74 int itemPixelPosX = chest_offs_x + 32 * (item_counter % chestWidthCells) + X_offset;
75 int itemPixelPosY = chest_offs_y + 32 * (item_counter / chestHeghtCells) + Y_offset;
76 render->DrawTextureAlphaNew(itemPixelPosX / 640.0
f,
77 itemPixelPosY / 480.0
f,
Перекрестные ссылки assets, CharacterUI_InventoryTab_Draw(), current_screen_type, draw_leather(), AssetsManager::GetImage_ColorKey(), Image::GetWidth(), pBtn_ExitCancel, pChestHeightsByType, pChestList, pChestPixelOffsetX, pChestPixelOffsetY, pChestWidthsByType, pPlayers, GUIWindow::ptr_1C, render, SCREEN_CHEST, SCREEN_CHEST_INVENTORY, StringPrintf(), uActiveCharacter, ui_exit_cancel_button_background, GUIButton::uX, GUIButton::uY, ChestList::vChests и vChests.