Back to Blog
Tmodloader steam overlay not working7/6/2023 ![]() I have not included rotation and scale in BuffDrawParams because for these to be useful I would have to adjust vanilla drawing to account for origin. Make things happen on clicking, the buffs are an interface, so click hooks are a given.Can reach from simple texture/color/positioning tweaks to entirely different buff representations. Being able to change how buffs are drawn in general.The LeftClick hook is pending testing with controllers Why should this be part of tModLoader? The main portion of the patch contains declaring local variables (which are all just stuffed into spriteBatch.Draw in vanilla), so modders can change and act on them using the provided hooks. It only changes three lines of code in Main.cs (icon drawing, text drawing, and mouse cursor boundary check) and exposes a total of 18 lines of effective vanilla code. Adds a BuffDrawParams class so the method signatures don't get too long, and it makes for easier changes/additions to the functionality without being API-breaking. Adds Mod/GlobalBuff PreDraw/ PostDraw and LeftClick/RightClick.
0 Comments
Read More
Leave a Reply. |