www.tombraiderforums.com

www.tombraiderforums.com (https://www.tombraiderforums.com/index.php)
-   Next Generation Level Editor (https://www.tombraiderforums.com/forumdisplay.php?f=40)
-   -   Open DLL Chat - Basic Questions, Inquiries, & Help Thread! (https://www.tombraiderforums.com/showthread.php?t=215819)

TokyoSU 19-03-20 17:23

Quote:

Originally Posted by JMN (Post 8179594)
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 :D
i'm glad it can help :)

JMN 15-04-20 16:40

Quote:

Originally Posted by TheLostSecret (Post 8186937)
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. :D

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;
}


TheLostSecret 15-04-20 18:13

Thanks!
 
Quote:

Originally Posted by JMN (Post 8187509)
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! :D
Thank you so much. :tmb:


All times are GMT. The time now is 17:05.

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