Jump to content

[SOLVED] Global Widget Styling


photo

Recommended Posts

Hello Unigine,

 

could you please implement a global function in the Widget Class to set for each Widget e.g. the "Border"? Which will not be renderd by set widget.setBorder(0); e.g.

 

Thanks and best regards

Lars

Link to comment

Sorry, can't get you. Can you describe in more detail what you want? What is setBorder()? What kind of global styling, for all widgets at the same time? You can change RC files for global GUI style.

Link to comment

The GUI elements have different parts, like the boarder.

It should be possible the access these parts and turn them off and on or style them. For each instance of a widget.

 

WidgetButton test;
test.setBorder(0);

 

Very nice would be when the widgets framework would develop in these directions:

 

some-h-file

WidgetButton test;

test.setClass("InventoryButton");

 

style-file

InventoryButton

{
  border: 0px;
  width: 20px;
  height: 15px;
  background: 'custom-inventory.png';
}

Link to comment
  • 3 weeks later...

Lars, it's a good idea. The problem is it requires serious refactoring of GUI, so I'm afraid we won't implement it in the near future. But when it comes to that, we'll definitely will take into account your suggestion. That's what I can promise you.

Link to comment
×
×
  • Create New...