Sign in to follow this  
Whitey

Brama Cookbook ( Solved )

16 posts in this topic

Hallo Leute.

Hab ein Problem mit dem Brama Cookbook.

Und zwar mit dem aufruf der init.sqf.

In der Anleitung steht es so geschrieben.

//App 1

_app1Text = "Recipes";

_app1Logo = "xm8Apps\BRAmaRecipes\BRAma.paa";

app1_action = { execVM "xm8Apps\BRAmaRecipes\init.sqf";

};

Bei mir in der config.ccp aber so:

class XM8_App05_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "xm8Apps\BRAmaRecipes\BRAma.paa";
    text = "Recipes";
    onButtonClick = "";
    resource = "";
};

Ich habe das Brama Logo im xm8 aber ich kann es nicht aufrufen.

Mir fehlt also der richtige aufruf der init.sqf.

"xm8Apps\BRAmaRecipes\init.sqf";

Es funktioniert weder execVM noch call.

Jemand eine Idee wie ich das lösen kann ?

Lg. Whitey

Edited by Whitey

Share this post


Link to post
Share on other sites
class BRAmaRecipes 
	{
		controlID = 107000;
		title = "Recipies";		
		logo = "xm8Apps\BRAmaRecipes\BRAma.paa";
		config = "xm8Apps\BRAmaRecipes\config.sqf";
		onLoad = "xm8Apps\BRAmaRecipes\onLoad.sqf";
		onOpen = "xm8Apps\BRAmaRecipes\onOpen.sqf";
	};

class XM8_App05_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "xm8Apps\BRAmaRecipes\BRAma.paa";
    text = "Recipies";
    onButtonClick = "['BRAmaRecipes', 0] call ExileClient_gui_xm8_slide";
    resource = "";
};

https://github.com/Beowulfv/BRAmaRecipes

  • Thanks 1

Share this post


Link to post
Share on other sites
Advertisement

Thanks.  Thats the one I have.  I was on a server the other day and noticed they had a version with a search box.  I'll ask the server owner where they got it from or a copy of the modifications.

Share this post


Link to post
Share on other sites

@Beowulfv

Funktioniert leider nicht.

Logo ist vorhanden aber es öffnet sich nichts. :-(

Auszug aus der config.cpp:

Spoiler

class CfgXM8 
{
    class settings
    {
        controlID = 4070;
        appID = "App01";
        title = "Settings";
    };
    
    class healthScanner
    {
        controlID = 4120;
        appID = "App02";
        title = "Health Scanner";
    };
    
    class slothMachine
    {
        controlID = 4140;
        appID = "App03";
        title = "Sloth Machine";
    };
    
    class BRAmaRecipes
    {
        controlID = 107000;
        title = "Recipies";        
        logo = "xm8Apps\BRAmaRecipes\BRAma.paa";
        config = "xm8Apps\BRAmaRecipes\config.sqf";
        onLoad = "xm8Apps\BRAmaRecipes\onLoad.sqf";
        onOpen = "xm8Apps\BRAmaRecipes\onOpen.sqf";
    };    
};
/*
    XM8 Extra apps, the Exile way of doing it
    
    Here is an example app layout:
    class XM8_App01_Button: RscExileXM8AppButton1x1
    {
        textureNoShortcut = "";      // Path to picture. This can be via mission file or client side PBO
        text = "";                    // The name of the app to be display on the button
        onButtonClick = "";            // The code to fire when the app is clicked
        resource = "";                // The name of the resource to load for the app, leave as an empty string if you just want to run code without a GUI, like BOOM or spawning a bike
    };
*/

class XM8_App01_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "\exile_assets\texture\ui\xm8_app_settings_ca.paa";
    text = "Settings";
    onButtonClick = "['settings', 0] call ExileClient_gui_xm8_slide";
    resource = "XM8SlideSettings";
};

class XM8_App02_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "\exile_assets\texture\ui\xm8_app_health_scanner_ca.paa";
    text = "Health Scanner";
    onButtonClick = "['healthScanner', 0] call ExileClient_gui_xm8_slide";
    resource = "XM8SlideHealthScanner";
};

class XM8_App03_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "\exile_assets\texture\ui\xm8_app_slothMachine_ca.paa";
    text = "Sloth Machine";
    onButtonClick = "['slothMachine', 0] call ExileClient_gui_xm8_slide";
    resource = "XM8SlideSlothMachine";
};

class XM8_App04_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "\exile_assets\texture\ui\xm8_app_boom_ca.paa";
    text = "BOOM!";
    onButtonClick = "call ExileClient_system_breaching_detonate";
    resource = "";
};

class XM8_App05_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "xm8Apps\BRAmaRecipes\BRAma.paa";
    text = "Recipes";
    onButtonClick = "'BRAmaRecipes', 0] call ExileClient_gui_xm8_slide";
    resource = "";
};

 

Share this post


Link to post
Share on other sites

@Whitey

class XM8_App05_Button: RscExileXM8AppButton1x1
{
    textureNoShortcut = "xm8Apps\BRAmaRecipes\BRAma.paa";
    text = "Recipies";
    onButtonClick = "['BRAmaRecipes', 0] call ExileClient_gui_xm8_slide";
    resource = "";
};

 

  • Thanks 1

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.