Jump to content

[Ayuda] Crear un Mini panel de mapas


Recommended Posts

Hola necesito ayuda estoy creando un mini panel donde los admin puedan iniciar aparte los mapas.

Esto es todo lo que tengo en parte del cliente.

Quote

function iniciarMap()
    Ventana = guiCreateWindow((sW - 350) / 2, (sH - 199) / 2, 350, 199, "Lista de mapas", false)
    guiWindowSetSizable(Ventana , false)
    guiSetVisible(Ventana , false)
    Tab = guiCreateTabPanel(10, 25, 340, 164, false, Ventana )

    Mapas = guiCreateTab("Mapas", Tab)

     MapListSearch = guiCreateEdit ( 3,3,132,20, "", false, Mapas )
    guiCreateStaticImage ( 135,5,17,17,"img/lupa.png", false, Mapas )

    MapList = guiCreateGridList ( 5,26,139,363, false, Mapas )
                      guiGridListAddColumn( MapList, "Mapas",0.8)

    CurMap = guiCreateLabel ( 167,101,186,15, "Mapa: N/A", false, Mapas )
    CurGamemode = guiCreateLabel ( 167,116,193,33, "Gamemode: N/A", false, Mapas )
    guiCreateLabel(161,6,70,17,"Informacion:",false,Mapas )

    Start = guiCreateButton ( 363,6,74,27, "Iniciar", false, Mapas )
    NextMap = guiCreateButton ( 363,33,74,27, "Next Map", false, Mapas )
    RefreshList = guiCreateButton ( 363,60,74,27, "Refrescar", false, Mapas )

end
addEventHandler("onClientResourceStart", resourceRoot, iniciarMap)

bindKey("F2", "down",iniciarMap)


Espero que me ayuden.

Edited by MedicenMarcos
Link to comment

[Español]

Gracias!
Pero quiero que me carge todos los mapas en la MapList = guiCreateGridList ( 5,26,139,363, false, Mapas )
                                                                                                                         guiGridListAddColumn( MapList, "Mapas",0.8)

y se pueda iniciar con el boton de     Start = guiCreateButton ( 363,6,74,27, "Iniciar", false, Mapas )
Cambiar de mapa   NextMap = guiCreateButton ( 363,33,74,27, "Next Map", false, Mapas )
y refresque la lista de mapas con     RefreshList = guiCreateButton ( 363,60,74,27, "Refrescar", false, Mapas )

[Inglés]

Thank you!
But I want you to upload all the maps in the 
MapList = guiCreateGridList ( 5,26,139,363, false, Mapas )
                                                                                                                         guiGridListAddColumn( MapList, "Mapas",0.8)
and can be started with the Start = guiCreateButton button (363,6,74,27, "Start", false, Maps)
Change map NextMap = guiCreateButton (363,33,74,27, "Next Map", false, Maps)
and refresh the map list with RefreshList = guiCreateButton (363,60,74,27, "Refresh", false, Maps)

Link to comment
 function iniciarMap()
    Ventana = guiCreateWindow((sW - 350) / 2, (sH - 199) / 2, 350, 199, "Lista de mapas", false)
    guiWindowSetSizable(Ventana , false)
    guiSetVisible(Ventana , false)
    Tab = guiCreateTabPanel(10, 25, 340, 164, false, Ventana )

    Mapas = guiCreateTab("Mapas", Tab)

     MapListSearch = guiCreateEdit ( 3,3,132,20, "", false, Mapas )
    guiCreateStaticImage ( 135,5,17,17,"img/lupa.png", false, Mapas )

    MapList = guiCreateGridList ( 5,26,139,363, false, Mapas )
                      guiGridListAddColumn( MapList, "Mapas",0.8)

    CurMap = guiCreateLabel ( 167,101,186,15, "Mapa: N/A", false, Mapas )
    CurGamemode = guiCreateLabel ( 167,116,193,33, "Gamemode: N/A", false, Mapas )
    guiCreateLabel(161,6,70,17,"Informacion:",false,Mapas )

    Start = guiCreateButton ( 363,6,74,27, "Iniciar", false, Mapas )
    NextMap = guiCreateButton ( 363,33,74,27, "Next Map", false, Mapas )
    RefreshList = guiCreateButton ( 363,60,74,27, "Refrescar", false, Mapas )

end
addEventHandler("onClientResourceStart", resourceRoot, iniciarMap) 

Quiero que los botones hagan sus funciones! y que en el guiCreateGridList solo muestre los mapas!

Edited by MedicenMarcos
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...