Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Menu option + Change Resolution + FontHeight  (Visto 28714 veces)

0 Miembros and 2 Guests are viewing this topic.

Offline T-LEGENDARY #40 Posteado: December 21, 2021, 12:37:22 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 777
  • Gracias recibida: 12529
  • br
v5 = sub_F407B20(); Dont have , some one have to give to my


Offline JavixFer #41 Posteado: December 21, 2021, 06:13:04 PM

  • +1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 507
  • Gracias recibida: 4854
  • bo
v5 = sub_F407B20(); Dont have , some one have to give to my
esa offset que pides no esta siendo usando en los codigos que comparti crea un tema en soporte para pedirselos a algun usuario ya que confundes a la gente pidiendolo aqui. saludos.


Offline T-LEGENDARY #42 Posteado: December 22, 2021, 08:00:58 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 777
  • Gracias recibida: 12529
  • br
v5 = sub_F407B20(); Dont have , some one have to give to my
esa offset que pides no esta siendo usando en los codigos que comparti crea un tema en soporte para pedirselos a algun usuario ya que confundes a la gente pidiendolo aqui. saludos.

done but , i have this problem in font , can you help my please, and you can create a code for click _window_mode and _fullscreen_mode



Offline JavixFer #43 Posteado: December 22, 2021, 08:04:27 AM

  • +1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 507
  • Gracias recibida: 4854
  • bo
v5 = sub_F407B20(); Dont have , some one have to give to my
esa offset que pides no esta siendo usando en los codigos que comparti crea un tema en soporte para pedirselos a algun usuario ya que confundes a la gente pidiendolo aqui. saludos.

done but , i have this problem in font , can you help my please, and you can create a code for click _window_mode and _fullscreen_mode



#include "Font.h"    sueno


Offline T-LEGENDARY #44 Posteado: December 22, 2021, 08:18:00 AM | Modificado: December 22, 2021, 08:23:04 AM by T-LEGENDARY

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 777
  • Gracias recibida: 12529
  • br
v5 = sub_F407B20(); Dont have , some one have to give to my
esa offset que pides no esta siendo usando en los codigos que comparti crea un tema en soporte para pedirselos a algun usuario ya que confundes a la gente pidiendolo aqui. saludos.

done but , i have this problem in font , can you help my please, and you can create a code for click _window_mode and _fullscreen_mode

#include "Font.h"    sueno

i was have look , and my font code is like that... can you send yours ?



font.cpp

Code: [Select]
#include "stdafx.h"
#include "Font.h"

CFont* gFont[100];

CFont::CFont(TCHAR* Name, int Size, int Weight, BOOL bItalic, BOOL bUnderline)
{
this->m_Font = CreateFontA(Size, 0, 0, 0, Weight, bItalic, bUnderline, FALSE,
0xFDE9, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS,
NONANTIALIASED_QUALITY, FF_DONTCARE | DEFAULT_PITCH,
Name);
}

CFont::~CFont()
{
DeleteObject(this->m_Font);
}

void InitFonts()
{
char FontName[] = "Arial";
const int BaseFontSize = 0;
gFont[ARIAL_8] = new CFont(FontName, BaseFontSize + 8, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_12] = new CFont(FontName, BaseFontSize + 12, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_14] = new CFont(FontName, BaseFontSize + 14, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_15] = new CFont(FontName, BaseFontSize + 15, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_16] = new CFont(FontName, BaseFontSize + 16, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_20] = new CFont(FontName, BaseFontSize + 20, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_22] = new CFont(FontName, BaseFontSize + 22, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_24] = new CFont(FontName, BaseFontSize + 24, FW_NORMAL, FALSE, FALSE);

gFont[ARIAL_BLACK_10] = new CFont(FontName, BaseFontSize + 10, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_11] = new CFont(FontName, BaseFontSize + 11, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_12] = new CFont(FontName, BaseFontSize + 12, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_13] = new CFont(FontName, BaseFontSize + 13, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_14] = new CFont(FontName, BaseFontSize + 14, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_15] = new CFont(FontName, BaseFontSize + 15, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_16] = new CFont(FontName, BaseFontSize + 16, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_24] = new CFont(FontName, BaseFontSize + 24, FW_BOLD, FALSE, FALSE);

gFont[ARIAL_UNDERLINE_10] = new CFont(FontName, BaseFontSize + 10, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_12] = new CFont(FontName, BaseFontSize + 12, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_14] = new CFont(FontName, BaseFontSize + 14, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_15] = new CFont(FontName, BaseFontSize + 15, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_16] = new CFont(FontName, BaseFontSize + 16, FW_NORMAL, FALSE, TRUE);

gFont[ARIAL_ITALIC_10] = new CFont(FontName, BaseFontSize + 8, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_12] = new CFont(FontName, BaseFontSize + 12, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_14] = new CFont(FontName, BaseFontSize + 14, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_15] = new CFont(FontName, BaseFontSize + 15, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_16] = new CFont(FontName, BaseFontSize + 16, FW_NORMAL, TRUE, FALSE);


font.h

Code: [Select]
#pragma once

class CFont
{
public:
CFont(TCHAR* Name, int Size, int Weight, BOOL bItalic, BOOL bUnderline);
~CFont();
HGDIOBJ m_Font;
};

void InitFonts();

enum FONT_TYPE {
ARIAL_8,
ARIAL_10,
ARIAL_12,
ARIAL_14,
ARIAL_15,
ARIAL_16,
ARIAL_20,
ARIAL_22,
ARIAL_24,

ARIAL_BLACK_10,
ARIAL_BLACK_11,
ARIAL_BLACK_12,
ARIAL_BLACK_13,
ARIAL_BLACK_14,
ARIAL_BLACK_15,
ARIAL_BLACK_16,
ARIAL_BLACK_24,

ARIAL_UNDERLINE_10,
ARIAL_UNDERLINE_12,
ARIAL_UNDERLINE_14,
ARIAL_UNDERLINE_15,
ARIAL_UNDERLINE_16,

ARIAL_ITALIC_10,
ARIAL_ITALIC_12,
ARIAL_ITALIC_14,
ARIAL_ITALIC_15,
ARIAL_ITALIC_16,
};

extern CFont* gFont[100];


Offline heyloor #45 Posteado: December 22, 2021, 08:27:26 AM | Modificado: December 22, 2021, 09:09:14 AM by heyloor

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 37
  • Gracias recibida: 9
  • ve
todo funciona bien ya lo probe, pero tengo un problemita, en la Font.h que tu publicastes esta esto:
Code: [Select]
; extern Font gFont;
y me crea un problema porque la anterios que yo tenia estaba asi:
Code: [Select]
extern CFont* gFont[100];

aqui es donde da el error
Code: [Select]
this->TextDraw(PosX, PosY, 0, 0, eGold, 0, 0, gFont[ARIAL_16]->m_Font, "X");

como puedo reemplazar esto gFont[ARIAL_16]->m_Font

disculpa y gracias.

yo anulo donde se esta usando el  gFont[ARIAL_16]->m_Font y todo corre bien, lo que no se en que me afectaria tener esas opciones bloqueadas en el game.

done but , i have this problem in font , can you help my please, and you can create a code for click _window_mode and _fullscreen_mode

here font.ccp y h -> https://mega.nz/file/XEty2J6T#_BgwaQhztAosBwIQ0VUynk2AMrtCu5Fv5y_y9MdEZBM

NOTA: -> lo unico que se me ocurrio fue cambiarle el name para que una funcion trabaje con gFont y la otra funcion trabje con extern CFont* tFont[100]; para que cargaran los 2 tipos de font, imagino que no sera la mejor solucion pero funciona sin problema por el momento.

Gracias:


Offline JavixFer #46 Posteado: December 22, 2021, 09:11:01 AM

  • +1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 507
  • Gracias recibida: 4854
  • bo
v5 = sub_F407B20(); Dont have , some one have to give to my
esa offset que pides no esta siendo usando en los codigos que comparti crea un tema en soporte para pedirselos a algun usuario ya que confundes a la gente pidiendolo aqui. saludos.

done but , i have this problem in font , can you help my please, and you can create a code for click _window_mode and _fullscreen_mode

#include "Font.h"    sueno

i was have look , and my font code is like that... can you send yours ?



font.cpp

Code: [Select]
#include "stdafx.h"
#include "Font.h"

CFont* gFont[100];

CFont::CFont(TCHAR* Name, int Size, int Weight, BOOL bItalic, BOOL bUnderline)
{
this->m_Font = CreateFontA(Size, 0, 0, 0, Weight, bItalic, bUnderline, FALSE,
0xFDE9, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS,
NONANTIALIASED_QUALITY, FF_DONTCARE | DEFAULT_PITCH,
Name);
}

CFont::~CFont()
{
DeleteObject(this->m_Font);
}

void InitFonts()
{
char FontName[] = "Arial";
const int BaseFontSize = 0;
gFont[ARIAL_8] = new CFont(FontName, BaseFontSize + 8, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_12] = new CFont(FontName, BaseFontSize + 12, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_14] = new CFont(FontName, BaseFontSize + 14, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_15] = new CFont(FontName, BaseFontSize + 15, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_16] = new CFont(FontName, BaseFontSize + 16, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_20] = new CFont(FontName, BaseFontSize + 20, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_22] = new CFont(FontName, BaseFontSize + 22, FW_NORMAL, FALSE, FALSE);
gFont[ARIAL_24] = new CFont(FontName, BaseFontSize + 24, FW_NORMAL, FALSE, FALSE);

gFont[ARIAL_BLACK_10] = new CFont(FontName, BaseFontSize + 10, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_11] = new CFont(FontName, BaseFontSize + 11, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_12] = new CFont(FontName, BaseFontSize + 12, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_13] = new CFont(FontName, BaseFontSize + 13, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_14] = new CFont(FontName, BaseFontSize + 14, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_15] = new CFont(FontName, BaseFontSize + 15, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_16] = new CFont(FontName, BaseFontSize + 16, FW_BOLD, FALSE, FALSE);
gFont[ARIAL_BLACK_24] = new CFont(FontName, BaseFontSize + 24, FW_BOLD, FALSE, FALSE);

gFont[ARIAL_UNDERLINE_10] = new CFont(FontName, BaseFontSize + 10, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_12] = new CFont(FontName, BaseFontSize + 12, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_14] = new CFont(FontName, BaseFontSize + 14, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_15] = new CFont(FontName, BaseFontSize + 15, FW_NORMAL, FALSE, TRUE);
gFont[ARIAL_UNDERLINE_16] = new CFont(FontName, BaseFontSize + 16, FW_NORMAL, FALSE, TRUE);

gFont[ARIAL_ITALIC_10] = new CFont(FontName, BaseFontSize + 8, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_12] = new CFont(FontName, BaseFontSize + 12, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_14] = new CFont(FontName, BaseFontSize + 14, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_15] = new CFont(FontName, BaseFontSize + 15, FW_NORMAL, TRUE, FALSE);
gFont[ARIAL_ITALIC_16] = new CFont(FontName, BaseFontSize + 16, FW_NORMAL, TRUE, FALSE);


font.h

Code: [Select]
#pragma once

class CFont
{
public:
CFont(TCHAR* Name, int Size, int Weight, BOOL bItalic, BOOL bUnderline);
~CFont();
HGDIOBJ m_Font;
};

void InitFonts();

enum FONT_TYPE {
ARIAL_8,
ARIAL_10,
ARIAL_12,
ARIAL_14,
ARIAL_15,
ARIAL_16,
ARIAL_20,
ARIAL_22,
ARIAL_24,

ARIAL_BLACK_10,
ARIAL_BLACK_11,
ARIAL_BLACK_12,
ARIAL_BLACK_13,
ARIAL_BLACK_14,
ARIAL_BLACK_15,
ARIAL_BLACK_16,
ARIAL_BLACK_24,

ARIAL_UNDERLINE_10,
ARIAL_UNDERLINE_12,
ARIAL_UNDERLINE_14,
ARIAL_UNDERLINE_15,
ARIAL_UNDERLINE_16,

ARIAL_ITALIC_10,
ARIAL_ITALIC_12,
ARIAL_ITALIC_14,
ARIAL_ITALIC_15,
ARIAL_ITALIC_16,
};

extern CFont* gFont[100];
no mames es en serio? hay un link en el post principal que deje desde un principio con los cpp de font, fijate bien y deja de desprestigiar el tema. bad


Offline T-LEGENDARY #47 Posteado: December 22, 2021, 10:28:46 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 777
  • Gracias recibida: 12529
  • br
@JavixFer you say this for my ? , bro another person have same question , now the post are complet abou all questions ... please dont write what you think ... this is one forrum for post and ask ....
@heyloor thanks a lot bro for helping  lucha


Offline T-LEGENDARY #48 Posteado: December 22, 2021, 10:45:53 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 777
  • Gracias recibida: 12529
  • br
@JavixFer sabes a criar uno button para _fullscreen_mode e _window_mode , puedes a criar abajo de lax resoluciones?


Offline heyloor #49 Posteado: December 22, 2021, 01:25:28 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 37
  • Gracias recibida: 9
  • ve
todo funciona perfecto ami me quedo asi, porque asi lo queria yo xd



doy prueba que el codigo funciona y lo puedes adaptar a tu gusto,

Gracias:


Offline skinmuonline #50 Posteado: January 06, 2022, 08:37:32 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 145
  • Gracias recibida: 218
  • br

Offline ailsoncost #51 Posteado: March 18, 2022, 11:41:48 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 46
  • Gracias recibida: 584
  • br

Offline vcore30 #52 Posteado: March 25, 2022, 05:00:17 AM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 97
  • Gracias recibida: 900
  • ru
How to correctly move the volume control to the right by 50 points? If I add X +50 textures move normally. But the volume control does not work correctly.

Code: [Select]
void RenderOptionPanel(int a1)
{
int This; // [sp+74h] [bp-4h]@1
float x; // [sp+2Ch] [bp-8h]@1
float y; // ST34_4@1


This = *(DWORD*)(GetInstance() + 160);

x = (double)*(signed int*)(This + 16);
y = (double)*(signed int*)(This + 20);

pDrawGUI(31596, x + 45, y + 124, 124.0, 16.0);

if (*(DWORD*)(This + 200) > 0)
{
pDrawGUI(31597, x + 45, y + 124, (double)*(signed int*)(This + 200) * 12.40000057220459, 16.0);
}
}

bool CheckSoundMouseOver(int x, int y, int w, int h)
{
int This; // [sp+74h] [bp-4h]@1

This = getWindowConfig_35((int)pWindowThis());

y = *(DWORD*)(This + 20) + 124;

return pCheckMouseOver(x, y, w, h);
}

SetCompleteHook(0xE9, 0x00849890, &RenderOptionPanel);  //0x008499E0 1.04E
SetCompleteHook(0xE8, 0x00848DFB, &CheckSoundMouseOver);  //0x00848F4B 1.04E


Offline vcore30 #53 Posteado: March 26, 2022, 08:18:40 AM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 97
  • Gracias recibida: 900
  • ru
That's what I did relax  It would be nice if there were buttons to turn off the music and windowed mode. And so that when you press ESC, HElper does not turn off. please      Main 1.04D



Gracias:


Offline vaneavanea31 #54 Posteado: May 11, 2022, 04:20:58 PM | Modificado: May 11, 2022, 05:59:59 PM by vaneavanea31

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 168
  • Gracias recibida: 39
  • md
JavixFer     You are THE BEST MAN !  cool2 cool2 cool2 cool2 cool2 aplausos aplausos aplausos


Thank You Very Much  !  please


Offline BastarDesing #55 Posteado: June 19, 2022, 03:14:11 AM | Modificado: June 19, 2022, 04:24:50 AM by BastarDesing

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 5
  • Gracias recibida: 1
hola grupo disculpenme las molestias me surgieron varios errores pero fue que acomode mal el codigo
fui leyendo y pude lograr hacerlo andar, pero tengo un problemita de visual en el cliente cuando cambio
la resolucion, queda ese marco que se ve ahi nose si a alguien le paso lo mismo o es solo ami?



Offline vcore30 #56 Posteado: June 19, 2022, 11:54:53 AM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 97
  • Gracias recibida: 900
  • ru
hola grupo disculpenme las molestias me surgieron varios errores pero fue que acomode mal el codigo
fui leyendo y pude lograr hacerlo andar, pero tengo un problemita de visual en el cliente cuando cambio
la resolucion, queda ese marco que se ve ahi nose si a alguien le paso lo mismo o es solo ami?



Es debido a que OpenGL32.dll lo deshabilitó.


Offline skinmuonline #57 Posteado: September 30, 2022, 07:44:45 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 145
  • Gracias recibida: 218
  • br

Offline usersa #58 Posteado: October 14, 2022, 09:08:42 AM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 189
  • Gracias recibida: 60
  • gr
How can disable move option window cause when open windows can move

Publicar un anuncio Mu Online gratis - Mu Online Community GRATIS.
Post free Mu Online ads - FREE Mu Online Community
https://www.facebook.com/groups/274190243227367/

Offline JavixFer #59 Posteado: October 14, 2022, 10:18:03 AM

  • +1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 507
  • Gracias recibida: 4854
  • bo
How can disable move option window cause when open windows can move

tienes que desactivar el sistema de movimiento de la dll de Kapocha, saludos.

Gracias:


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1240 Views
Last post January 02, 2021, 04:34:29 AM
by shadowofjay
0 Replies
642 Views
Last post January 16, 2021, 09:56:08 AM
by yuval07
1 Replies
1631 Views
Last post March 18, 2021, 09:44:14 PM
by NguyenAnh
4 Replies
4714 Views
Last post July 17, 2021, 10:51:15 PM
by ghmoraes
6 Replies
4729 Views
Last post October 29, 2021, 04:55:17 PM
by SaintZeus