Barbie wrote:Code: Select all
MsgText[(TopLine + 1 + MaxLines) % MaxLines] = "(>"@TypedStr;
If you want to change the ">" I recommend subclassing "Console". Anything else would be an ugly hack.
I'm just afraid that the console could be swapped at runtime. But well, if the hack wouldn't be worth, then yeah, I will subclassing Console, or just don't give a crap about that "(>" XD.
EDIT: So, I managed to get the Canvas using PostRender() function into the mutator, now, if I use this code:
Code: Select all
canvas.StrLen("test", XL, YL);
canvas.SetPos(0, 0);
canvas.Font = canvas.MedFont;
canvas.DrawText("test", false);
If I use it inside PostRender(), it renders correctly, but if I use it outside of of the PostRender() function(in my case inside the Tick() function), it gives me this GPF:
- GPF.PNG (11.78 KiB) Viewed 2154 times
EDIT 2: I added a cal to "canvas.Reset()" now, before of the code above, I get this:
It's not a big difference from the one above but at least now it says it's a failed assertion.
I would like to view this assertion on line 335 of UnCanvas.cpp, but I don't have UnCanvas.cpp file, I have UnCamera.cpp where UCanvas is declared, but nothing about UnCanvas.
Is there somewhere I can get the source from? (I only have this one: "ut432pubsrc.zip")
EDIT 3: Oh well, I will just use PostRender() function from within my mutator then. Thanks everyone