lars.saalbach Posted October 28, 2012 Share Posted October 28, 2012 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
manguste Posted November 2, 2012 Share Posted November 2, 2012 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
manuel.gysin Posted November 9, 2012 Share Posted November 9, 2012 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
manguste Posted November 27, 2012 Share Posted November 27, 2012 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
Recommended Posts