diff --git a/bin/client.py b/bin/client.py index 7553f13..ea9a9fe 100644 --- a/bin/client.py +++ b/bin/client.py @@ -15,7 +15,7 @@ try: # been import use from bin import configs from bin import tools -except ModuleNotFoundError: +except ModuleNotFoundError or ImportError: # editing use import configs import tools @@ -94,9 +94,12 @@ class RenderThread(mp.Process, pyglet.window.Window): """ def on_draw(self): - self.part_draw() + self.logger.info('testing!') - def part_draw(self): + def build_draw(self): + pass + + def space_draw(self): # render parts for ship in self.ships: # get ship poi diff --git a/docs/configes sample/in_file_config.json5 b/docs/configes sample/in_file_config.json5 index 443f88e..292e1b5 100644 --- a/docs/configes sample/in_file_config.json5 +++ b/docs/configes sample/in_file_config.json5 @@ -8,7 +8,7 @@ } }, client: { - 'self.view': ['space', 'map', 'menu'], + 'self.view': ['space', 'map', 'menu', 'build'], 'self.textures': { 'first name of textures(defaut: difficult_rocket)': { 'name of image or name of list': 'pyglet.image class or dict', @@ -17,7 +17,7 @@ 会直接检测是列表还是image 另外 可 在文件夹同级放image文件 */ - 'nothing': 'nothing' + nothing: 'nothing' } }, 'self.parts': { @@ -60,7 +60,7 @@ 比如对接之后传输燃料、渲染太阳能板 的时候可以用到 */ - 'nothing': 'nothing' + nothing: 'nothing' } ] }