trainerbase 2.8.1__tar.gz → 2.8.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TrainerBase
3
- Version: 2.8.1
3
+ Version: 2.8.2
4
4
  Summary: Template/Framework to create game trainers
5
5
  License: MIT
6
6
  Author-email: v01d <v01d@v01d.ru>,doomayka <zd@doomayka.ru>
@@ -18,7 +18,7 @@ dev = [
18
18
 
19
19
  [project]
20
20
  name = "TrainerBase"
21
- version = "2.8.1"
21
+ version = "2.8.2"
22
22
  description = "Template/Framework to create game trainers"
23
23
  authors = [
24
24
  { name = "v01d", email = "v01d@v01d.ru" },
@@ -163,8 +163,9 @@ def add_teleport_to_gui(tp: Teleport, hotkey_save_position: str = None, hotkey_s
163
163
  add_gameobject_to_gui(tp.player_z, "Z", before_set=float)
164
164
 
165
165
  labels = sorted(tp.labels.keys())
166
- with dpg.group(horizontal=True):
167
- dpg.add_button(label="Go To", callback=on_goto_label)
168
- dpg.add_combo(label="Labels", tag=tag_teleport_labels, items=labels, default_value=labels[0])
166
+ if labels:
167
+ with dpg.group(horizontal=True):
168
+ dpg.add_button(label="Go To", callback=on_goto_label)
169
+ dpg.add_combo(label="Labels", tag=tag_teleport_labels, items=labels, default_value=labels[0])
169
170
 
170
171
  dpg.add_button(label="Clip Coords", callback=on_clip_coords)
File without changes
File without changes
File without changes