www.tombraiderforums.com  

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Next Generation Level Editor

Reply
 
Thread Tools
Old 19-03-20, 17:23   #621
TokyoSU
Explorer
 
TokyoSU's Avatar
 
Join Date: Mar 2019
Location: France, Caen
Posts: 547
Default

Quote:
Originally Posted by JMN View Post
Nice, you've decompiled DrawThreeDeeObject2D().

I'm using that function to draw the pickup notifier in the ring inventory plugin. Might come in handy to fix some issues with it.

Thanks for sharing the code.
no problem
i'm glad it can help
__________________
"Life is Dream, just a dream"
TokyoSU is offline   Reply With Quote
Old 15-04-20, 16:40   #622
JMN
Explorer
 
Join Date: Sep 2006
Posts: 651
Default

Quote:
Originally Posted by TheLostSecret View Post
Hi there.

Does anyone know how can we disable input via CB_INVENT_BACKGROUND_DRAW callback for pause menu?
For the inventory, I use this code and it works:
Code:
Get(enumGET.INPUT, NULL, NULL);
*GET.Input.pCommandsWrite = NULL;
However, for the pause menu, I can only receive input, but not removing it.

Any help will be appreciated.
This disables input for me, not sure if it does what you want.

Code:
int cbInventBackgroundDraw(WORD CB_Type, WORD CBT_Flags, WORD PHASE_Type)
{
    if (PHASE_Type == enumPHASE.PAUSE_SCREEN) {
        S_UpdateInput();

        Get(enumGET.INPUT, NULL, NULL);
        *GET.Input.pGameCommandsWrite = NULL;
    }

    return enumSRET.OK;
}
JMN is offline   Reply With Quote
Old 15-04-20, 18:13   #623
TheLostSecret
Explorer
 
Join Date: Mar 2018
Location: ERROR: Nowhere to be found
Posts: 620
Talking Thanks!

Quote:
Originally Posted by JMN View Post
This disables input for me, not sure if it does what you want.

Code:
int cbInventBackgroundDraw(WORD CB_Type, WORD CBT_Flags, WORD PHASE_Type)
{
    if (PHASE_Type == enumPHASE.PAUSE_SCREEN) {
        S_UpdateInput();

        Get(enumGET.INPUT, NULL, NULL);
        *GET.Input.pGameCommandsWrite = NULL;
    }

    return enumSRET.OK;
}
Works like a charm!
Thank you so much.
TheLostSecret is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.