I have an inventory interface(a lot of divs with layering images) in the left sidebar of my game. The interface has two tabs, clothing and backpack. For now, the code looks like this:
<<set $Visiblelayer to "clothing">>
<<set $Visiblelayer to "backpack">>
<<if $Visiblelayer is "clothing">>
<<elseif $Visiblelayer is "backpack">>
It works fine, but the unnecesary reload of the whole passage bothers me, it may cause troubles in the future. And overall I think there must be some cleaner way to do this.
So the question is - how can I refresh just she sidebar without refreshing the whole passage? Thanks in advance!