props = WindowProperties()
props.set_size(res)
props.set_fullscreen(self._options['settings']['fullscreen'])
- props.set_icon_filename('assets/icon/pmachines.ico')
+ props.set_icon_filename('assets/images/icon/pmachines.ico')
if not args.screenshot:
base.win.request_properties(props)
#gltf.patch_loader(base.loader)
self._music = music
self._pipeline = pipeline
self._cursor = MouseCursor(
- 'assets/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
+ 'assets/images/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
(.01, .01))
self._font = base.loader.load_font('assets/fonts/Hanken-Book.ttf')
self._font.clear()
scenes = sorted(scenes, key=lambda elm: elm.sorting)
self.destroy()
self._cursor = MouseCursor(
- 'assets/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
+ 'assets/images/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
(.01, .01))
self._widgets = []
cmn = self._common_btn.copy() | {
def on_options(self):
self.destroy()
self._cursor = MouseCursor(
- 'assets/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
+ 'assets/images/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
(.01, .01))
self._set_options()
def on_credits(self):
self.destroy()
self._cursor = MouseCursor(
- 'assets/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
+ 'assets/images/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
(.01, .01))
self._set_credits()
self._opt_file.store()
self.destroy()
self._cursor = MouseCursor(
- 'assets/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
+ 'assets/images/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
(.01, .01))
self._set_main()
self._reload_cb = reload_cb
self._set_camera()
self._cursor = MouseCursor(
- 'assets/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
+ 'assets/images/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.dds' % path)
+ img = OnscreenImage('assets/images/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.dds' % img)
+ self._cursor.set_image('assets/images/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.dds')
+ self._cursor.set_image('assets/images/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.dds' % name)
+ graphic = OnscreenImage('assets/images/buttons/%s.dds' % name)
graphic.set_scale(.5)
graphic.get_texture().set_minfilter(Texture.FTLinearMipmapLinear)
graphic.get_texture().set_anisotropic_degree(2)
* issues
* todo
-** assets/buttons/ -> assets/images/buttons/
-** assets/icon/ -> assets/images/icon/
-** assets/po/ assets/locale/po/
+** assets/po/ -> assets/locale/po/
** create models (python setup.py models) with multiprocessing pool
** refactoring
** build pipeline
'assets/images/icon/icon16_png.png']},
'icons': {
appname: [
- 'assets/icon/icon256.png',
- 'assets/icon/icon128.png',
- 'assets/icon/icon48.png',
- 'assets/icon/icon32.png',
- 'assets/icon/icon16.png']},
+ 'assets/images/icon/icon256.png',
+ 'assets/images/icon/icon128.png',
+ 'assets/images/icon/icon48.png',
+ 'assets/images/icon/icon32.png',
+ 'assets/images/icon/icon16.png']},
'include_patterns': [
'**/lib/licenses/*',
'**/licenses/*',