self._reload_cb = reload_cb
self._set_camera()
self._cursor = MouseCursor(
- 'assets/buttons/arrowUpLeft.png', (.04, 1, .04), (.5, .5, .5, 1),
+ 'assets/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
(.01, .01))
self._set_gui()
self._set_lights()
base.camera.look_at(0, 0, 0)
def __load_img_btn(self, path, col):
- img = OnscreenImage('assets/buttons/%s.png' % path)
+ img = OnscreenImage('assets/buttons/%s.dds' % path)
img.set_transparency(True)
img.set_color(col)
img.detach_node()
getattr(item, method)(pos)
img = 'move' if method == 'on_click_l' else 'rotate'
if not (img == 'rotate' and not item._instantiated):
- self._cursor.set_image('assets/buttons/%s.png' % img)
+ self._cursor.set_image('assets/buttons/%s.dds' % img)
def on_click_l(self):
self._on_click('on_click_l')
self.__next_btn['frameColor'] = fcols[1]
self._item_active = None
[item.on_release() for item in self.items]
- self._cursor.set_image('assets/buttons/arrowUpLeft.png')
+ self._cursor.set_image('assets/buttons/arrowUpLeft.dds')
def repos(self):
for item in self.items:
self.__store_state()
mgr = TextPropertiesManager.get_global_ptr()
for name in ['mouse_l', 'mouse_r']:
- graphic = OnscreenImage('assets/buttons/%s.png' % name)
+ graphic = OnscreenImage('assets/buttons/%s.dds' % name)
graphic.set_scale(.5)
graphic.get_texture().set_minfilter(Texture.FTLinearMipmapLinear)
graphic.get_texture().set_anisotropic_degree(2)