Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.



 
InícioÚltimas imagensProcurarRegistarEntrar
Os que mais criam tópicos
Sonart
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
Alenaldo
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
Over~
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
Warrior
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
Caio~
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
SSO
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
newbie123
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
Kaue
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
Jim
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
yuri godinho
Mirage Creation - Janelas InGame Móveis I_vote_lcapMirage Creation - Janelas InGame Móveis I_voting_barMirage Creation - Janelas InGame Móveis I_vote_rcap 
Entrar
Nome de usuário:
Senha:
Entrar automaticamente: 
:: Esqueci-me da senha

 

 Mirage Creation - Janelas InGame Móveis

Ir para baixo 
2 participantes
AutorMensagem
Caio~
Membro
Membro
Caio~


Mensagens : 53
Moeda : 92
Pontos : 5
Data de inscrição : 07/01/2013
Idade : 26
Localização : Belém

Mirage Creation - Janelas InGame Móveis Empty
MensagemAssunto: Mirage Creation - Janelas InGame Móveis   Mirage Creation - Janelas InGame Móveis Icon_minitimeTer Jan 08, 2013 8:54 am

- Descrição -

Esse
sistema faz com que aquelas janelas do inventário, magias, status,
party sejam móveis igual a janela de loja e do banco. E também faz com
que todas essas janelas possam ser abertas simultâneamente.


- Tutorial -

Abra o Mirage_Creation_Client.vbp pelo VB6.
Agora na Sub Input_Mouse_Move() proucure pelo código:

Código:
            'Move Shop
            Case ShopWindow
                With GameWindow.Shop.Screen
                    .DX = .DX  MousePosAdd.X
                    .DY = .DY  MousePosAdd.Y
                    If WindowsInScreen Then
                        If .DX < 0 Then .DX = 0
                        If .DY < 0 Then .DY = 0
                        If .DX > ScreenWidth - .dW Then .DX = ScreenWidth - .dW
                        If .DY > ScreenHeight - .dH Then .DY = ScreenHeight - .dH
                    End If
                End With
 'Move Bank
            Case BankWindow
                With GameWindow.Bank.Screen
                    .DX = .DX  MousePosAdd.X
                    .DY = .DY  MousePosAdd.Y
                    If WindowsInScreen Then
                        If .DX < 0 Then .DX = 0
                        If .DY < 0 Then .DY = 0
                        If .DX > ScreenWidth - .dW Then .DX = ScreenWidth - .dW
                        If .DY > ScreenHeight - .dH Then .DY = ScreenHeight - .dH
                    End If
                End With

Substitua ele todo por este código:

Código:
            'Move Shop
            Case ShopWindow
                    Call Window_Move(GameWindow.Shop.Screen)
               
            'Move Bank
            Case BankWindow
                Call Window_Move(GameWindow.Bank.Screen)
           
            'Move inventory
            Case InventoryWindow
                Call Window_Move(GameWindow.Inventory.Screen)
           
            'Move skills
            Case SkillWindow
                Call Window_Move(GameWindow.Skill.Screen)
           
            'Move status
            Case characterwindow
                Call Window_Move(GameWindow.Character.Window)
               
            'Move party
            Case PartyWindow
                Call Window_Move(GameWindow.Party.Window)

Agora coloque esta Sub no final da página desse mesmo módulo.
Código:
Private Sub Window_Move(ByRef WindowNum As Grh_Input)
    With WindowNum
        .DX = .DX + MousePosAdd.X
        .DY = .DY + MousePosAdd.Y
       
        If WindowsInScreen Then
            If .DX < 0 Then .DX = 0
            If .DY < 0 Then .DY = 0
            If .DX > ScreenWidth - .dW Then .DX = ScreenWidth - .dW
            If .DY > ScreenHeight - .dH Then .DY = ScreenHeight - .dH
        End If
    End With
End Sub

Pronto! A parte de mover a janela já está feita. Agora vamos para a parte de abrir mais de uma janela simutâneamente.

Na modInput ainda, proucure pela Function Input_Mouse_LeftClick_Window(ByVal WindowIndex As Byte) As Byte
Agora proucure pelo código:

Código:
                                    Select Case i

                                        Case 1
                                            ResetWindows InventoryWindow
                                            ShowGameWindow(InventoryWindow) = Not ShowGameWindow(InventoryWindow)
                                        Case 2
                                            ShowGameWindow(ChatWindow) = Not ShowGameWindow(ChatWindow)
                                        Case 3
                                            ResetWindows SkillWindow
                                            ShowGameWindow(SkillWindow) = Not ShowGameWindow(SkillWindow)
                                        Case 4
                                            ResetWindows PartyWindow
                                            ShowGameWindow(PartyWindow) = Not ShowGameWindow(PartyWindow)
                                        Case 5
                                            ResetWindows characterwindow
                                            ShowGameWindow(characterwindow) = Not ShowGameWindow(characterwindow)
Substitua ele todo por:

Código:
                                    Select Case i

                                        Case 1
                                            ShowGameWindow(InventoryWindow) = Not ShowGameWindow(InventoryWindow)
                                        Case 2
                                            ShowGameWindow(ChatWindow) = Not ShowGameWindow(ChatWindow)
                                        Case 3
                                            ShowGameWindow(SkillWindow) = Not ShowGameWindow(SkillWindow)
                                        Case 4
                                            ShowGameWindow(PartyWindow) = Not ShowGameWindow(PartyWindow)
                                        Case 5
                                            ShowGameWindow(characterwindow) = Not ShowGameWindow(characterwindow)
- Créditos -

Caio~ C10 - Por criar o código e o tutorial
Valentine - Por simplificar o código.
Ir para o topo Ir para baixo
newbie123
Admin
Admin



Mensagens : 57
Moeda : 68
Pontos : 2
Data de inscrição : 29/12/2012

Mirage Creation - Janelas InGame Móveis Empty
MensagemAssunto: Re: Mirage Creation - Janelas InGame Móveis   Mirage Creation - Janelas InGame Móveis Icon_minitimeTer Jan 08, 2013 3:53 pm

Ixe e foi você que criou ainda kkkkkk, hm... +1 REP, e espero mais tutoriais vindo de sua parte.
Ir para o topo Ir para baixo
Caio~
Membro
Membro
Caio~


Mensagens : 53
Moeda : 92
Pontos : 5
Data de inscrição : 07/01/2013
Idade : 26
Localização : Belém

Mirage Creation - Janelas InGame Móveis Empty
MensagemAssunto: Re: Mirage Creation - Janelas InGame Móveis   Mirage Creation - Janelas InGame Móveis Icon_minitimeTer Jan 08, 2013 5:35 pm

Sim, ultimamente tenho usado bastante a Mirage Creation. Tou customizando ela inteiramente, já até traduzi ela.
Ir para o topo Ir para baixo
Conteúdo patrocinado





Mirage Creation - Janelas InGame Móveis Empty
MensagemAssunto: Re: Mirage Creation - Janelas InGame Móveis   Mirage Creation - Janelas InGame Móveis Icon_minitime

Ir para o topo Ir para baixo
 
Mirage Creation - Janelas InGame Móveis
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» Mirage Creation - NPC forte com cor de nome diferente
» Mirage Creation - HP, MP e EXP em Porcentagem
» [Mirage Creation] Correção - Nome do NPC
» Mirage Creation - Diminuindo lag do autotile
» Mirage Creation - Adicionando panoramas

Permissões neste sub-fórumNão podes responder a tópicos
 :: Desenvolvimento de Jogos :: Engines :: DX8 Engine :: Tutoriais-
Ir para: