Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey r3dhummingbird, thx for the updates again!
We've run into a problem implementing 2.0, as we're using fullHD resolution the buttons for a) "switch table" and b) the..pronounce - symbols of possible figures to change a pawn into on the right side.
Looking into the code a bit, were not even sure if its unicode-symbols or graphical buttons used for.. both seem kind of exist..
What we get shown are brackets like with like unicode mismatching:



D'you have ideas by chance how to solve that - or do we have to build the buttons otherwise?

Best Regards

Hi Ic4p,

Both the promotion piece buttons and the flip-board button are implemented using Unicode textbuttons. There is a flip-board button image in the asset folder but it isn't used. (See the code linked below.) If the Unicode characters aren't showing up, you would want to replace the textbuttons with image buttons and use image assets. If you have any more questions, please feel free to reach me on Discord. My handle is lynn#9327.

https://github.com/RuolinZheng08/renpy-chess/blob/bb3eeac7ec2bb5d2728d161db29388...

https://github.com/RuolinZheng08/renpy-chess/blob/bb3eeac7ec2bb5d2728d161db29388...

Hi ^^

Did you manage to use those ImageButtons? If so, please tell me how. I now need to know that myself for a project I'm working on, and I have absolutely no clue on how to do it.

Hey. No, in fact the unicode buttons work like a charm as soon as you use a standard FONT for the chess game.. 

And do I need to write any specific line/s of code in order to do that?

**Sorry, just kinda new to RenPy here ^^

The latest update on GitHub makes GUI display text use DejaVuSans explicitly.

Basically,

# BEGIN STYLE
style game_status_text is text:
    font 'DejaVuSans.ttf'
    color COLOR_WHITE
    size TEXT_SIZE
style promotion_piece is button
style promotion_piece_text is text:
    font 'DejaVuSans.ttf'
    size TEXT_BUTTON_SIZE
    color '#aaaaaa' # gray
    hover_color '#555555' # darker gray
    selected_color COLOR_WHITE
style flip_board is button
style flip_board_text is text:
    font 'DejaVuSans.ttf'
    size TEXT_BUTTON_SIZE
    color '#aaaaaa' # gray
    hover_color COLOR_WHITE
# END STYLE