McRogueFace/tests
John McCardle d93642094e Squashed commit of the following: [alpha_streamline_1]
the low-hanging fruit of pre-existing issues and standardizing the
Python interfaces

Special thanks to Claude Code, ~100k output tokens for this merge

    🤖 Generated with [Claude Code](https://claude.ai/code)
    Co-Authored-By: Claude <noreply@anthropic.com>

commit 99f301e3a0
Author: John McCardle <mccardle.john@gmail.com>
Date:   Sat Jul 5 16:25:32 2025 -0400

    Add position tuple support and pos property to UI elements

    closes #83, closes #84

    - Issue #83: Add position tuple support to constructors
      - Frame and Sprite now accept both (x, y) and ((x, y)) forms
      - Also accept Vector objects as position arguments
      - Caption and Entity already supported tuple/Vector forms
      - Uses PyVector::from_arg for flexible position parsing

    - Issue #84: Add pos property to Frame and Sprite
      - Added pos getter that returns a Vector
      - Added pos setter that accepts Vector or tuple
      - Provides consistency with Caption and Entity which already had pos properties
      - All UI elements now have a uniform way to get/set positions as Vectors

    Both features improve API consistency and make it easier to work with positions.

commit 2f2b488fb5
Author: John McCardle <mccardle.john@gmail.com>
Date:   Sat Jul 5 16:18:10 2025 -0400

    Standardize sprite_index property and add scale_x/scale_y to UISprite

    closes #81, closes #82

    - Issue #81: Standardized property name to sprite_index across UISprite and UIEntity
      - Added sprite_index as the primary property name
      - Kept sprite_number as a deprecated alias for backward compatibility
      - Updated repr() methods to use sprite_index
      - Updated animation system to recognize both names

    - Issue #82: Added scale_x and scale_y properties to UISprite
      - Enables non-uniform scaling of sprites
      - scale property still works for uniform scaling
      - Both properties work with the animation system

    All existing code using sprite_number continues to work due to backward compatibility.

commit 5a003a9aa5
Author: John McCardle <mccardle.john@gmail.com>
Date:   Sat Jul 5 16:09:52 2025 -0400

    Fix multiple low priority issues

    closes #12, closes #80, closes #95, closes #96, closes #99

    - Issue #12: Set tp_new to NULL for GridPoint and GridPointState to prevent instantiation from Python
    - Issue #80: Renamed Caption.size to Caption.font_size for semantic clarity
    - Issue #95: Fixed UICollection repr to show actual derived types instead of generic UIDrawable
    - Issue #96: Added extend() method to UICollection for API consistency with UIEntityCollection
    - Issue #99: Exposed read-only properties for Texture (sprite_width, sprite_height, sheet_width, sheet_height, sprite_count, source) and Font (family, source)

    All issues have corresponding tests that verify the fixes work correctly.

commit e5affaf317
Author: John McCardle <mccardle.john@gmail.com>
Date:   Sat Jul 5 15:50:09 2025 -0400

    Fix critical issues: script loading, entity types, and color properties

    - Issue #37: Fix Windows scripts subdirectory not checked
      - Updated executeScript() to use executable_path() from platform.h
      - Scripts now load correctly when working directory differs from executable

    - Issue #76: Fix UIEntityCollection returns wrong type
      - Updated UIEntityCollectionIter::next() to check for stored Python object
      - Derived Entity classes now preserve their type when retrieved from collections

    - Issue #9: Recreate RenderTexture when resized (already fixed)
      - Confirmed RenderTexture recreation already implemented in set_size() and set_float_member()
      - Uses 1.5x padding and 4096 max size limit

    - Issue #79: Fix Color r, g, b, a properties return None
      - Implemented get_member() and set_member() in PyColor.cpp
      - Color component properties now work correctly with proper validation

    - Additional fix: Grid.at() method signature
      - Changed from METH_O to METH_VARARGS to accept two arguments

    All fixes include comprehensive tests to verify functionality.

    closes #37, closes #76, closes #9, closes #79
2025-07-05 17:30:49 -04:00
..
WORKING_automation_test_example.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
animation_demo.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
api_createScene_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
api_keypressScene_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
api_sceneUI_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
api_setScene_currentScene_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
api_timer_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
automation_click_issue78_analysis.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
automation_click_issue78_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
automation_screenshot_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
automation_screenshot_test_simple.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
debug_render_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
empty_script.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
exit_immediately_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
force_non_interactive.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
generate_caption_screenshot_fixed.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
generate_docs_screenshots.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
generate_docs_screenshots_simple.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
generate_entity_screenshot_fixed.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
generate_grid_screenshot.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
generate_sprite_screenshot.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
issue_9_minimal_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_9_rendertexture_resize_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_9_simple_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_9_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_12_gridpoint_instantiation_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_26_28_iterator_comprehensive_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_37_simple_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_37_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_37_windows_scripts_comprehensive_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_76_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_76_uientitycollection_type_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_79_color_properties_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_80_caption_font_size_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_81_sprite_index_standardization_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_82_sprite_scale_xy_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_83_position_tuple_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_84_pos_property_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_95_uicollection_repr_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_96_uicollection_extend_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
issue_99_texture_font_properties_test.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
keypress_scene_validation_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
run_issue_tests.py Squashed commit of the following: [alpha_streamline_1] 2025-07-05 17:30:49 -04:00
screenshot_transparency_fix_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
simple_screenshot_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
simple_timer_screenshot_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
test_stdin_theory.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
trace_exec_behavior.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
trace_interactive.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Entity_issue73_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Frame_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Frame_test_detailed.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Grid_none_texture_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Grid_null_texture_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Grid_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Grid_test_no_grid.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Grid_test_simple.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_Sprite_issue19_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
ui_UICollection_issue69_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
validate_screenshot_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00
working_timer_test.py Squashed commit of the following: [interpreter_mode] 2025-07-05 17:23:09 -04:00