Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Gameframe

Custom window frame for GameMaker games · By YellowAfterlife

Windows Focus / Border

A topic by playyee created 13 days ago Views: 100 Replies: 16
Viewing posts 1 to 4

Ok so i dont know how to really explain it but when the window dosent have focus and it has focus

when it dosent have focus i want the border still be visibile instead of dissapearing (in a way)

so i want the border still be visibile when the window dosent have focus, ty

Developer

You can override gameframe_caption_draw_border to draw the border the way you like.

The default behaviour can be found in gameframe_caption_draw_border_default.

However, if you are using the default border sprite, it should already stay as it is (only the caption fades) so you might mean something else.

yeah something similiar, when the caption fades i do not want the border to fade and im not using different border sprites, only default

so?

Developer

You might want to attach a screenshot of what’s happening (focused / unfocused) with what you consider to be the border highlighted because I don’t think we’re talking about the same thing

This is of course a pizza tower mod, but this is with focus and without focus, when there isnt any focus i want the border still be visibile

so is it possible or not?

Developer

This is not what happens in the example project so that would be something that you did, Pizza Tower did (search for gameframe_alpha), or decompiler bug if you are using a decompiled version of Pizza Tower without replacing the decompiled extension scripts by the actual ones from itch.

Yeah this is kinda a Pizza Tower mod that me and a friend decompiled with gameframe in it (im not pirating, basically every fangame and mod of pizza tower basically use gameframe) so this might look confusing but if you see when the caption (not the border) fades the border is still visibile, the only thing ik is they might use an older vers that i might prob not get in my hands or just straight modify the entire extension

heres a video that might be more clear:

https://files.catbox.moe/thbm4o.mp4

this video isnt mine but by another mod

yeah i cant find a way how to do it

Developer

As you might suspect, there’s a limited amount of help that I can offer with code that I cannot see and you did not write, more so when it’s using a version of the extension that can be outdated and/or broken.

oh, i dont think its broken but i think the scripts and some stuff are modified

hi yellow, ok so i actually found how the white border is being drawn.

its not the alpha or anything

its actually a script which gets the window border w and h 

and draws the border and ofc

idk how to cod lmao

heya