Join us on our TWC Discord channel

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu
#21
(07-12-2013, 05:36 PM)Cieply Wrote: Hey, I was bored today so I started edit my ET menu to check out how it works xd Since it was my first time I based on others menu.
[Image: rt28p0.jpg]
I know it's notin' special, only visual changes but What do you think?

hi cieply how you can change/edit this ET menu, i cant open the file :/
Reply
#22
ah this is old one from few years ago ;/ u had to rename it to .pk3 yourself coz u uploaded wrong file ;x and now it would require to edit server ip and names coz it little changed in last years lel.
anyway new one im working on is shown on pic in my previous post ;<
“If you really want to do something, you'll find a way. If you don't, you'll find an excuse.”


[Image: stcieply.png]
Reply
#23
where is this shown, i only see your menu, but how did you edit it?

I think the ET menu is a bit boring and I like your version pretty well.

Ps use ET: Legacy
Reply
#24
I'm pretty sure you can edit .pk3s with PakScape.

[Image: 76561198043822433.png]

Reply
#25
u can open pk3 with winrar and edit menu file with wordpad
“If you really want to do something, you'll find a way. If you don't, you'll find an excuse.”


[Image: stcieply.png]
Reply
#26
(28-01-2018, 01:00 AM)Night$ky Wrote: where is this shown, i only see your menu, but how did you edit it?

I think the ET menu is a bit boring and I like your version pretty well.

(28-01-2018, 01:58 AM)Cieply Wrote: u can open pk3 with winrar and edit menu file with wordpad

This. It's a good start to look at some custom menu, check the folder structure, files and check what does what. You can also take a look at pak0.pk3 and jaymod menu files under the "ui" folder in both.

Default main.menu from pak0.pk3 for the lulz:
Code:
#include "ui/menudef.h" // Defines // #define WINDOW_X 16 #define WINDOW_Y 16 #define WINDOW_WIDTH 128 #define WINDOW_HEIGHT 200 #define GROUP_NAME "grpMain" // Macros // #include "ui/menumacros.h" // Opener // menuDef { name "main_opener" visible 0 fullscreen 0 rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT onOpen { open fadebox_black ; open background_1 ; setmenuitemcolor fadebox_black fadebox backcolor 0 0 0 1 ; fadeoutmenu fadebox_black ; open main ; clearcvar ui_profile_create_error ; close main_opener } } // Main Menu // menuDef { name "main" visible 0 fullscreen 0 rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT style WINDOW_STYLE_FILLED onOpen { // setitemcolor fadebox backcolor 0 0 0 1 ; // uiScript stopRefresh ; // conditionalscript cl_profile 1 ( "clearFocus" ) ( "close main ; open profile_create_initial_opener" ) // do we want an abort here? // ydnar conditionalscript ROldModeCheck 2 ( "clearFocus ; open vid_confirm" ) ( "clearFocus" ) conditionalscript cl_autoupdate 1 ( "checkautoupdate" ) ( "clearFocus" ) } onEsc { clearFocus ; open quit } // Background Logo // itemDef { name "et_logo" rect 104 124 400 200 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/et_logo_huge" visible 1 decoration } // Company Logos // /*itemDef { name "id_logo" rect 0 400 48 48 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_id_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "atvi_logo" rect 52 421 108 27 // 16, 16 offset!! (note offset to left a little as well) style WINDOW_STYLE_SHADER background "ui/assets/logo_atvi_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "sd_logo" rect $evalfloat(640-(2*WINDOW_X)-48) 400 48 48 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_sd_dark" forecolor 1 1 1 1 visible 1 decoration }*/ itemDef { name "sd_logo" rect 4 394 54 54 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_sd_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "atvi_logo" rect $evalfloat(640-(2*WINDOW_X)-48-4-108) 421 108 27 // 16, 16 offset!! (note offset to left a little as well) style WINDOW_STYLE_SHADER background "ui/assets/logo_atvi_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "id_logo" rect $evalfloat(640-(2*WINDOW_X)-48) 400 48 48 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_id_dark" forecolor 1 1 1 1 visible 1 decoration } // Window // WINDOW( "MAIN", 50 ) // Buttons // BUTTON( 6, 32, WINDOW_WIDTH-12, 18, "PLAY ONLINE", .3, 14, close main ; /*close backgroundmusic ; open backgroundmusic_server ;*/ uiScript UpdateFilter ; uiScript ServerSortDown 4 ; open playonline ) BUTTON( 6, 56, WINDOW_WIDTH-12, 18, "HOST GAME", .3, 14, close main ; /*close backgroundmusic ; open backgroundmusic_server ;*/ uiScript loadArenas ; uiScript initHostGameFeatures ; open hostgame ) BUTTON( 6, 80, WINDOW_WIDTH-12, 18, "REPLAYS", .3, 14, close main ; open viewreplay ) BUTTON( 6, 104, WINDOW_WIDTH-12, 18, "OPTIONS", .3, 14, close main ; open options ) BUTTON( 6, 128, WINDOW_WIDTH-12, 18, "PROFILE", .3, 14, close main ; open profile ) BUTTON( 6, 152, WINDOW_WIDTH-12, 18, "CREDITS", .3, 14, close main ; open credits_splashdamage ) BUTTON( 6, 176, WINDOW_WIDTH-12, 18, "EXIT GAME", .3, 14, clearFocus ; open quit ) }

You can also perhaps find something useful here:
https://enemyterritory-stuff.net/forums/...territory/
Also if you want to add it to a sever note the part about the .campaign script... However I'm pretty sure the file can be empty, as long as it's called .campaign



On a sidenote, I'm not sure how you can just change it for yourself, except editing the jaymod etc pk3 themselves... Do you just make a pk3 like how you would add it to a server? I've just worked with menus that are on the gameservers, never made one for just my ET.

PS. @NightSky if you just edit some .pk3 menu and repack it and replace the old one, you will get a checksum error if you visit a server that's using that same menu.
[Image: kvMpcRs.gif]
[Image: ZwR89Ne.png]

[Image: trolling.png]
Reply
#27
when u put it in etmain u will be only one who see it, but its just for start menu not gonna affect ingame menus.
“If you really want to do something, you'll find a way. If you don't, you'll find an excuse.”


[Image: stcieply.png]
Reply
#28
Quote:“If you really want to do something, you'll find a way. If you don't, you'll find an excuse.”

Of course you can change everything, question is what you want to change? And in what mod? :P
[Image: jaubo.jpg]
Reply
#29
(28-01-2018, 06:15 PM)Mystik Wrote:
(28-01-2018, 01:00 AM)Night$ky Wrote: where is this shown, i only see your menu, but how did you edit it?

I think the ET menu is a bit boring and I like your version pretty well.

(28-01-2018, 01:58 AM)Cieply Wrote: u can open pk3 with winrar and edit menu file with wordpad

This. It's a good start to look at some custom menu, check the folder structure, files and check what does what. You can also take a look at pak0.pk3 and jaymod menu files under the "ui" folder in both.

Default main.menu from pak0.pk3 for the lulz:
Code:
#include "ui/menudef.h" // Defines // #define WINDOW_X 16 #define WINDOW_Y 16 #define WINDOW_WIDTH 128 #define WINDOW_HEIGHT 200 #define GROUP_NAME "grpMain" // Macros // #include "ui/menumacros.h" // Opener // menuDef { name "main_opener" visible 0 fullscreen 0 rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT onOpen { open fadebox_black ; open background_1 ; setmenuitemcolor fadebox_black fadebox backcolor 0 0 0 1 ; fadeoutmenu fadebox_black ; open main ; clearcvar ui_profile_create_error ; close main_opener } } // Main Menu // menuDef { name "main" visible 0 fullscreen 0 rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT style WINDOW_STYLE_FILLED onOpen { // setitemcolor fadebox backcolor 0 0 0 1 ; // uiScript stopRefresh ; // conditionalscript cl_profile 1 ( "clearFocus" ) ( "close main ; open profile_create_initial_opener" ) // do we want an abort here? // ydnar conditionalscript ROldModeCheck 2 ( "clearFocus ; open vid_confirm" ) ( "clearFocus" ) conditionalscript cl_autoupdate 1 ( "checkautoupdate" ) ( "clearFocus" ) } onEsc { clearFocus ; open quit } // Background Logo // itemDef { name "et_logo" rect 104 124 400 200 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/et_logo_huge" visible 1 decoration } // Company Logos // /*itemDef { name "id_logo" rect 0 400 48 48 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_id_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "atvi_logo" rect 52 421 108 27 // 16, 16 offset!! (note offset to left a little as well) style WINDOW_STYLE_SHADER background "ui/assets/logo_atvi_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "sd_logo" rect $evalfloat(640-(2*WINDOW_X)-48) 400 48 48 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_sd_dark" forecolor 1 1 1 1 visible 1 decoration }*/ itemDef { name "sd_logo" rect 4 394 54 54 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_sd_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "atvi_logo" rect $evalfloat(640-(2*WINDOW_X)-48-4-108) 421 108 27 // 16, 16 offset!! (note offset to left a little as well) style WINDOW_STYLE_SHADER background "ui/assets/logo_atvi_dark" forecolor 1 1 1 1 visible 1 decoration } itemDef { name "id_logo" rect $evalfloat(640-(2*WINDOW_X)-48) 400 48 48 // 16, 16 offset!! style WINDOW_STYLE_SHADER background "ui/assets/logo_id_dark" forecolor 1 1 1 1 visible 1 decoration } // Window // WINDOW( "MAIN", 50 ) // Buttons // BUTTON( 6, 32, WINDOW_WIDTH-12, 18, "PLAY ONLINE", .3, 14, close main ; /*close backgroundmusic ; open backgroundmusic_server ;*/ uiScript UpdateFilter ; uiScript ServerSortDown 4 ; open playonline ) BUTTON( 6, 56, WINDOW_WIDTH-12, 18, "HOST GAME", .3, 14, close main ; /*close backgroundmusic ; open backgroundmusic_server ;*/ uiScript loadArenas ; uiScript initHostGameFeatures ; open hostgame ) BUTTON( 6, 80, WINDOW_WIDTH-12, 18, "REPLAYS", .3, 14, close main ; open viewreplay ) BUTTON( 6, 104, WINDOW_WIDTH-12, 18, "OPTIONS", .3, 14, close main ; open options ) BUTTON( 6, 128, WINDOW_WIDTH-12, 18, "PROFILE", .3, 14, close main ; open profile ) BUTTON( 6, 152, WINDOW_WIDTH-12, 18, "CREDITS", .3, 14, close main ; open credits_splashdamage ) BUTTON( 6, 176, WINDOW_WIDTH-12, 18, "EXIT GAME", .3, 14, clearFocus ; open quit ) }

You can also perhaps find something useful here:
https://enemyterritory-stuff.net/forums/...territory/
Also if you want to add it to a sever note the part about the .campaign script... However I'm pretty sure the file can be empty, as long as it's called .campaign



On a sidenote, I'm not sure how you can just change it for yourself, except editing the jaymod etc pk3 themselves... Do you just make a pk3 like how you would add it to a server? I've just worked with menus that are on the gameservers, never made one for just my ET.

PS. @NightSky if you just edit some .pk3 menu and repack it and replace the old one, you will get a checksum error if you visit a server that's using that same menu.

Whaat is this sorcery Biggrin
Reply
#30
(27-01-2018, 09:21 PM)Cieply Wrote: [Image: xpx2dw.jpg]

anyway on side note , what do u think about this ? xd
“If you really want to do something, you'll find a way. If you don't, you'll find an excuse.”


[Image: stcieply.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  -TWC| Menu John 11 10,690 01-12-2012, 03:00 PM
Last Post: Destroy666

Forum Jump:


Users browsing this thread: