pygkit 1.0.2__tar.gz → 1.0.3__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.
Files changed (41) hide show
  1. {pygkit-1.0.2 → pygkit-1.0.3}/PKG-INFO +5 -2
  2. {pygkit-1.0.2 → pygkit-1.0.3}/README.md +4 -1
  3. {pygkit-1.0.2 → pygkit-1.0.3}/pyproject.toml +1 -1
  4. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/ui/dialog.py +9 -13
  5. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit.egg-info/PKG-INFO +5 -2
  6. {pygkit-1.0.2 → pygkit-1.0.3}/LICENSE +0 -0
  7. {pygkit-1.0.2 → pygkit-1.0.3}/setup.cfg +0 -0
  8. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/__init__.py +0 -0
  9. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/audio/__init__.py +0 -0
  10. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/audio/soundmanager.py +0 -0
  11. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/inventory/__init__.py +0 -0
  12. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/inventory/assets.py +0 -0
  13. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/inventory/core.py +0 -0
  14. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/inventory/data.py +0 -0
  15. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/inventory/ui.py +0 -0
  16. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/protocols.py +0 -0
  17. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/transitions/__init__.py +0 -0
  18. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/transitions/base.py +0 -0
  19. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/transitions/effects.py +0 -0
  20. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/transitions/fades.py +0 -0
  21. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/transitions/wipes.py +0 -0
  22. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/ui/__init__.py +0 -0
  23. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/ui/base.py +0 -0
  24. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/ui/container.py +0 -0
  25. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/ui/cooldown.py +0 -0
  26. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/ui/progressbar.py +0 -0
  27. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/utils/__init__.py +0 -0
  28. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/utils/interpolation.py +0 -0
  29. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/utils/text.py +0 -0
  30. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit/utils/timer.py +0 -0
  31. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit.egg-info/SOURCES.txt +0 -0
  32. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit.egg-info/dependency_links.txt +0 -0
  33. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit.egg-info/requires.txt +0 -0
  34. {pygkit-1.0.2 → pygkit-1.0.3}/src/pygkit.egg-info/top_level.txt +0 -0
  35. {pygkit-1.0.2 → pygkit-1.0.3}/tests/test_box_model.py +0 -0
  36. {pygkit-1.0.2 → pygkit-1.0.3}/tests/test_dialog.py +0 -0
  37. {pygkit-1.0.2 → pygkit-1.0.3}/tests/test_interpolation.py +0 -0
  38. {pygkit-1.0.2 → pygkit-1.0.3}/tests/test_inventory.py +0 -0
  39. {pygkit-1.0.2 → pygkit-1.0.3}/tests/test_text.py +0 -0
  40. {pygkit-1.0.2 → pygkit-1.0.3}/tests/test_timer.py +0 -0
  41. {pygkit-1.0.2 → pygkit-1.0.3}/tests/test_transitions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygkit
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: General-purpose Pygame CE runtime kit: UI widgets, audio, timers, interpolation, and more.
5
5
  Author: pygkit contributors
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -708,8 +708,11 @@ import pygkit
708
708
 
709
709
  ## Features
710
710
 
711
- - **UI**: Box-model widgets with plugin compositing — progress bars, cooldown overlays, containers
711
+ - **UI**: Box-model widgets with plugin compositing — progress bars, cooldown overlays, containers, dialog system
712
+ - **Dialog**: Typewriter effect with customizable speeds, speaker names, and progress indicators
713
+ - **Inventory**: Grid-based item management with stacking, weight tracking, events, and serialization
712
714
  - **Audio**: SoundManager with channel pools and explicit targeting
715
+ - **Transitions**: Screen transitions with fade, wipe, and custom effects
713
716
  - **Utils**: Timer, interpolation/easing functions
714
717
 
715
718
  ## Installation
@@ -10,8 +10,11 @@ import pygkit
10
10
 
11
11
  ## Features
12
12
 
13
- - **UI**: Box-model widgets with plugin compositing — progress bars, cooldown overlays, containers
13
+ - **UI**: Box-model widgets with plugin compositing — progress bars, cooldown overlays, containers, dialog system
14
+ - **Dialog**: Typewriter effect with customizable speeds, speaker names, and progress indicators
15
+ - **Inventory**: Grid-based item management with stacking, weight tracking, events, and serialization
14
16
  - **Audio**: SoundManager with channel pools and explicit targeting
17
+ - **Transitions**: Screen transitions with fade, wipe, and custom effects
15
18
  - **Utils**: Timer, interpolation/easing functions
16
19
 
17
20
  ## Installation
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pygkit"
7
- version = "1.0.2"
7
+ version = "1.0.3"
8
8
  description = "General-purpose Pygame CE runtime kit: UI widgets, audio, timers, interpolation, and more."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -275,25 +275,21 @@ class DialogBox(UIBase):
275
275
  return
276
276
 
277
277
  if not self._is_complete:
278
- self._typewriter_timer.reset()
279
-
280
- chars_to_add = 0
278
+ text_len = len(self._current_line.text)
281
279
  elapsed = self._typewriter_timer.elapsed()
282
280
  interval = self._typewriter_timer.interval
283
281
 
284
- if interval > 0:
282
+ if elapsed >= interval and interval > 0:
285
283
  chars_to_add = max(1, int(elapsed / interval))
286
284
 
287
- text_len = len(self._current_line.text)
288
- if self._char_index < text_len:
289
- old_index = self._char_index
290
- self._char_index = min(text_len, self._char_index + chars_to_add)
291
- self._displayed_text = self._current_line.text[: self._char_index]
285
+ if self._char_index < text_len:
286
+ old_index = self._char_index
287
+ self._char_index = min(text_len, self._char_index + chars_to_add)
288
+ self._displayed_text = self._current_line.text[: self._char_index]
292
289
 
293
- if self._char_index != old_index:
294
- self._needs_rebuild = True
290
+ if self._char_index != old_index:
291
+ self._needs_rebuild = True
295
292
 
296
- if self._char_index < text_len:
297
293
  self._typewriter_timer.reset()
298
294
 
299
295
  if self._char_index >= text_len:
@@ -400,7 +396,7 @@ class DialogBox(UIBase):
400
396
  pos_offset: Position offset (x, y) on the screen
401
397
  """
402
398
 
403
- if self._needs_rebuild and self._is_complete:
399
+ if self._needs_rebuild:
404
400
  self._rebuild_text_surfaces()
405
401
 
406
402
  self.draw_base()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygkit
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: General-purpose Pygame CE runtime kit: UI widgets, audio, timers, interpolation, and more.
5
5
  Author: pygkit contributors
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -708,8 +708,11 @@ import pygkit
708
708
 
709
709
  ## Features
710
710
 
711
- - **UI**: Box-model widgets with plugin compositing — progress bars, cooldown overlays, containers
711
+ - **UI**: Box-model widgets with plugin compositing — progress bars, cooldown overlays, containers, dialog system
712
+ - **Dialog**: Typewriter effect with customizable speeds, speaker names, and progress indicators
713
+ - **Inventory**: Grid-based item management with stacking, weight tracking, events, and serialization
712
714
  - **Audio**: SoundManager with channel pools and explicit targeting
715
+ - **Transitions**: Screen transitions with fade, wipe, and custom effects
713
716
  - **Utils**: Timer, interpolation/easing functions
714
717
 
715
718
  ## Installation
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes