Skip to content

Update card_draw.lua#1236

Open
RainDance2871 wants to merge 1 commit intoSteamodded:mainfrom
RainDance2871:patch-1
Open

Update card_draw.lua#1236
RainDance2871 wants to merge 1 commit intoSteamodded:mainfrom
RainDance2871:patch-1

Conversation

@RainDance2871
Copy link

@RainDance2871 RainDance2871 commented Mar 1, 2026

Bug fix: canvas text was drawn even when card was undiscovered.

New functionality: easy text alignment: rather then creating a new table for text_transform whenever the text changes, this way you can simply set text_h_align and text_v_align once.

text_h_align can be 'left', 'center' (default behaviour) or 'right' text_v_align can be 'top', 'middle' (default behaviour) or 'bottom'

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

Bug fix: canvas text was drawn even when card was undiscovered.

New functionality: easy text alignment: rather then creating a new table for text_transform whenever the text changes, this way you can simply set text_h_align and text_v_align once.

text_h_align can be 'left', 'center' (default behaviour) or 'right'
text_v_align can be 'top', 'middle' (default behaviour) or 'bottom'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant