forked from townforge/townforge
game: display runestone messages in a larger font
This commit is contained in:
parent
2adef1dd14
commit
1951538ca9
@ -9,6 +9,7 @@
|
||||
#include <tb/tb_widgets_common.h>
|
||||
#include <tb/image/tb_image_widget.h>
|
||||
#include <tb/tb_widgets_reader.h>
|
||||
#include <tb/tb_font_renderer.h>
|
||||
#include "cc/cc_script.h"
|
||||
#include "game-wallet.h"
|
||||
#include "game-state.h"
|
||||
@ -41,6 +42,12 @@ UIRunestoneMessageDialog::UIRunestoneMessageDialog(Urho3D::Context *ctx, const G
|
||||
}
|
||||
messageWidget->SetStyling(styling);
|
||||
messageWidget->SetText(runestone.message.c_str());
|
||||
|
||||
const tb::TBFontDescription fd = g_font_manager->GetDefaultFontDescription();
|
||||
tb::TBFontDescription fd_large = fd;
|
||||
fd_large.SetSize(fd.GetSize() * 4 / 3);
|
||||
messageWidget->SetFontDescription(fd_large);
|
||||
|
||||
messageContainer->SetValue(!uiContainer->GetValue());
|
||||
|
||||
scriptContainer = GetWidgetByIDAndType<TBToggleContainer>(TBIDC("script-container"));
|
||||
|
Loading…
Reference in New Issue
Block a user