mirror of
https://github.com/zebrajr/SamRewritten.git
synced 2025-12-06 00:19:47 +01:00
Show restricted permission in the GUI
This commit is contained in:
parent
b2d4c6e0f0
commit
27de0b9baf
|
|
@ -71,6 +71,13 @@ AchievementBoxRow::AchievementBoxRow(const Achievement_t& data)
|
|||
layout->pack_start(m_icon, false, true, 0);
|
||||
layout->pack_start(*title_desc_box, true, true, 0);
|
||||
|
||||
if (is_permission_protected(data.permission))
|
||||
{
|
||||
Gtk::Label* label = Gtk::make_managed<Gtk::Label>("⚠️ ");
|
||||
label->set_tooltip_text("This achievement is protected. SamRewritten will likely not be able to change it!");
|
||||
layout->pack_start(*label, false, true, 0);
|
||||
}
|
||||
|
||||
if (data.special & ACHIEVEMENT_RARE)
|
||||
{
|
||||
Gtk::Label* label = Gtk::make_managed<Gtk::Label>("💎 ");
|
||||
|
|
|
|||
|
|
@ -86,6 +86,14 @@ StatBoxRow::StatBoxRow(const StatValue_t& data)
|
|||
new_values_box->pack_start(m_new_value_entry, true, true, 0);
|
||||
values_box->pack_start(*new_values_box, false, true, 0);
|
||||
layout->pack_start(*title_box, true, true, 0);
|
||||
|
||||
if (is_permission_protected(data.permission))
|
||||
{
|
||||
Gtk::Label* label = Gtk::make_managed<Gtk::Label>("⚠️ ");
|
||||
label->set_tooltip_text("This stat is protected. SamRewritten will likely not be able to change it!");
|
||||
layout->pack_start(*label, false, true, 0);
|
||||
}
|
||||
|
||||
layout->pack_start(m_invalid_conversion_box, false, true, 0);
|
||||
layout->pack_start(*more_info_button, false, true, 0);
|
||||
layout->pack_start(*values_box, false, true, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user