Skip to main content

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

Gameframe

Custom window frame for GameMaker games · By YellowAfterlife

How do i make the caption draw black text instead of white text?

A topic by adamindibiemiravci created Sep 14, 2024 Views: 80 Replies: 2
Viewing posts 1 to 3

I am trying to make the caption from the example project (gameframe_23 folder from the source code (usable only after you compile it)) look more like a traditional windows caption (black text on white), ive got everything else in order except for the text, which seems to draw as white even though i cannot find a single mention of c_white or #ffffff in any code except the one i have written

Developer (1 edit)

I should probably add a variable for caption text (as I already have variables for font and alpha), but the easiest for now would be to do something like

global.gameframe_caption_draw_text_orig = gameframe_caption_draw_text;
gameframe_caption_draw_text = function(_x, _y, _w, _h) {
	draw_set_color(c_black);
	global.gameframe_caption_draw_text_orig(_x, _y, _w, _h);
}

thank you very much