mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 23:30:07 +00:00
Enable the right hand side imags.
This commit is contained in:
parent
741f8efa01
commit
ca1a8fd788
@ -39,6 +39,8 @@ Version 1.5.7+svn:
|
|||||||
* The new portrait dialogs can get higher so the scrollbars are less often
|
* The new portrait dialogs can get higher so the scrollbars are less often
|
||||||
visible.
|
visible.
|
||||||
* Added a password box that hides its input
|
* Added a password box that hides its input
|
||||||
|
* The new portrait dialogs can now show the old images as well and also the
|
||||||
|
right hand side images.
|
||||||
* Multiplayer ui:
|
* Multiplayer ui:
|
||||||
* Added a gui front-end to various commands, brought up by double clicking
|
* Added a gui front-end to various commands, brought up by double clicking
|
||||||
a player name, replacing the old whisper dialog
|
a player name, replacing the old whisper dialog
|
||||||
|
@ -27,6 +27,8 @@ Version 1.5.7+svn:
|
|||||||
* Fixed several glitches in with the listboxes and new portrait dialog.
|
* Fixed several glitches in with the listboxes and new portrait dialog.
|
||||||
* Pressing escape in a new dialog, behaves like in the old dialogs again.
|
* Pressing escape in a new dialog, behaves like in the old dialogs again.
|
||||||
* Spacebar closes the dialogs without a scrollbar again.
|
* Spacebar closes the dialogs without a scrollbar again.
|
||||||
|
* The new portrait dialogs can now show the old images as well and also the
|
||||||
|
right hand side images.
|
||||||
|
|
||||||
* Multiplayer user interface
|
* Multiplayer user interface
|
||||||
* Added a gui front-end to various commands, brought up by double clicking
|
* Added a gui front-end to various commands, brought up by double clicking
|
||||||
|
@ -2955,6 +2955,24 @@ namespace {
|
|||||||
image = speaker->second.profile();
|
image = speaker->second.profile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const size_t right_offset = image.find("~RIGHT()");
|
||||||
|
if(right_offset != std::string::npos) {
|
||||||
|
image.erase(right_offset);
|
||||||
|
|
||||||
|
gui2::twml_message_right dlg(
|
||||||
|
caption,
|
||||||
|
cfg["message"],
|
||||||
|
image,
|
||||||
|
false);
|
||||||
|
|
||||||
|
dlg.show(screen->video());
|
||||||
|
if(dlg.get_retval() == gui2::twindow::CANCEL) {
|
||||||
|
handler.skip_messages() = true;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
gui2::twml_message_left dlg(
|
gui2::twml_message_left dlg(
|
||||||
caption,
|
caption,
|
||||||
cfg["message"],
|
cfg["message"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user