A really shitty ritual crafting UI is working but needs a big reshape.
This commit is contained in:
parent
14619558fa
commit
2ceab51c40
13 changed files with 124 additions and 63 deletions
|
@ -203,10 +203,13 @@ namespace guecs {
|
|||
$world.remove<Comp>(ent);
|
||||
}
|
||||
|
||||
// BUG: close could just be remove with overload
|
||||
template <typename Comp>
|
||||
void close(string region) {
|
||||
auto ent = entity(region);
|
||||
remove<Comp>(ent);
|
||||
if(has<Comp>(ent)) {
|
||||
remove<Comp>(ent);
|
||||
}
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
@ -229,8 +232,6 @@ namespace guecs {
|
|||
|
||||
void show_sprite(string region, string sprite_name);
|
||||
void show_text(string region, wstring content);
|
||||
void update_text(string region, wstring content);
|
||||
void update_label(string region, wstring content);
|
||||
void show_label(string region, wstring content);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue