Mercurial > mm7
comparison GUI/GUIWindow.h @ 2550:fb42e2662c38
Chest UI refactored to a class
author | a.parshin |
---|---|
date | Tue, 12 May 2015 11:28:22 +0200 |
parents | 3121fb54a110 |
children | 4008b2f34be0 |
comparison
equal
deleted
inserted
replaced
2549:3121fb54a110 | 2550:fb42e2662c38 |
---|---|
393 virtual ~GUIWindow_GenericDialogue() {} | 393 virtual ~GUIWindow_GenericDialogue() {} |
394 | 394 |
395 virtual void Update(); | 395 virtual void Update(); |
396 virtual void Release(); | 396 virtual void Release(); |
397 }; | 397 }; |
398 struct GUIWindow_Chest : public GUIWindow | |
399 { | |
400 GUIWindow_Chest(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | |
401 GUIWindow(x, y, width, height, button, hint) | |
402 { | |
403 CreateButton(61, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 1, '1', "", 0); | |
404 CreateButton(177, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 2, '2', "", 0); | |
405 CreateButton(292, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 3, '3', "", 0); | |
406 CreateButton(407, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 4, '4', "", 0); | |
407 CreateButton(0, 0, 0, 0, 1, 0, UIMSG_CycleCharacters, 0, 9, "", 0); | |
408 } | |
409 virtual ~GUIWindow_Chest() {} | |
410 | |
411 virtual void Update(); | |
412 }; | |
413 struct GUIWindow_House : public GUIWindow | 398 struct GUIWindow_House : public GUIWindow |
414 { | 399 { |
415 GUIWindow_House(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint); | 400 GUIWindow_House(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint); |
416 virtual ~GUIWindow_House() {} | 401 virtual ~GUIWindow_House() {} |
417 | 402 |
676 | 661 |
677 | 662 |
678 | 663 |
679 | 664 |
680 | 665 |
681 // book ui | |
682 void DrawSpellDescriptionPopup(int spell_index); | 666 void DrawSpellDescriptionPopup(int spell_index); |
683 | 667 |
684 | 668 |
685 | 669 |
686 | 670 |