mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 13:15:32 +00:00
Handle 128px Tx_menubook_topics textures
This commit is contained in:
parent
36f4f0ef85
commit
60d0c83cca
1 changed files with 12 additions and 1 deletions
|
@ -203,9 +203,20 @@ namespace
|
||||||
int cancelLeft = getWidget<MyGUI::Widget>(CancelBTN)->getPosition().left;
|
int cancelLeft = getWidget<MyGUI::Widget>(CancelBTN)->getPosition().left;
|
||||||
int cancelRight = getWidget<MyGUI::Widget>(CancelBTN)->getPosition().left + getWidget<MyGUI::Widget>(CancelBTN)->getSize().width;
|
int cancelRight = getWidget<MyGUI::Widget>(CancelBTN)->getPosition().left + getWidget<MyGUI::Widget>(CancelBTN)->getSize().width;
|
||||||
|
|
||||||
getWidget<MyGUI::Widget>(TopicsBTN)->setPosition(cancelLeft - topicsWidth, getWidget<MyGUI::Widget>(TopicsBTN)->getPosition().top);
|
|
||||||
getWidget<MyGUI::Widget>(QuestsBTN)->setPosition(cancelRight, getWidget<MyGUI::Widget>(QuestsBTN)->getPosition().top);
|
getWidget<MyGUI::Widget>(QuestsBTN)->setPosition(cancelRight, getWidget<MyGUI::Widget>(QuestsBTN)->getPosition().top);
|
||||||
|
|
||||||
|
// Usually Topics, Quests, and Cancel buttons have the 64px width, so we can place the Topics left-up from the Cancel button, and the Quests right-up from the Cancel button.
|
||||||
|
// But in some installations, e.g. German one, the Topics button has the 128px width, so we should place it exactly left from the Quests button.
|
||||||
|
if (getWidget<MyGUI::Widget>(TopicsBTN)->getSize().width == 64)
|
||||||
|
{
|
||||||
|
getWidget<MyGUI::Widget>(TopicsBTN)->setPosition(cancelLeft - topicsWidth, getWidget<MyGUI::Widget>(TopicsBTN)->getPosition().top);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
int questLeft = getWidget<MyGUI::Widget>(QuestsBTN)->getPosition().left;
|
||||||
|
getWidget<MyGUI::Widget>(TopicsBTN)->setPosition(questLeft - topicsWidth, getWidget<MyGUI::Widget>(TopicsBTN)->getPosition().top);
|
||||||
|
}
|
||||||
|
|
||||||
mQuestMode = false;
|
mQuestMode = false;
|
||||||
mAllQuests = false;
|
mAllQuests = false;
|
||||||
mOptionsMode = false;
|
mOptionsMode = false;
|
||||||
|
|
Loading…
Reference in a new issue