Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat position customizations don't work + solution #122

Open
tom-fa opened this issue Sep 10, 2020 · 0 comments
Open

Chat position customizations don't work + solution #122

tom-fa opened this issue Sep 10, 2020 · 0 comments
Labels

Comments

@tom-fa
Copy link

tom-fa commented Sep 10, 2020

Editing the chat's xpos and ypos via either changing the values in basechat.res or applying one of the chat position customizations provided didn't work on most cases (bottom right worked somehow, but i wanted it top left).

The box would be in the position specified in basechat.res after saving changes to the file and a hud_reloadscheme, but after a lot of common events (player death, class change, team change, map change, etc.) it would revert back to it's "default" position.

Intended position example
Default position

After asking around in teamfortress.tv, user Zetos pointed me to an answer user Hypnotize had just given:

Hypnotize
You can add this animation to your animations file (usualy its something like scripts > hudanimations_custom.txt) this makes it so that the positioning of the chat will stay the same as the one set inside BaseChat.res

event CompetitiveGame_LowerChatWindow
{
}
event CompetitiveGame_RestoreChatWindow
{
}
event HudTournament_MoveChatWindow
{
}

I found this code was present in another hud I had (m0rehud) which didn't have this issue, in the following file: \scripts\animations\hudanimations_m0re.txt.

I then successfully pasted the code unto ahud-master\scripts\hudanimations_misc.txt to, as Hypnotize put it, have the chat box's position stay as set in basechat.res.

Hope this helps. Cool hud btw, thanks a lot!

@n0kk n0kk added the fixed label Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants