Author Topic: Interface Maker source?  (Read 2469 times)

0 Members and 1 Guest are viewing this topic.

Offline MofoNofo

  • Veteran
  • *****
  • Posts: 1019
Interface Maker source?
« on: August 11, 2006, 08:30:31 am »
or something that can decode .SIF file types.

I just think that there could be a possibly, "better" interface maker. Ofcourse this really isn't nessecary, but there are some things that can be added to the interface maker:
1. Cursor transparency option (can be found in soldat.ini though, so this may not be workable)
2. Free rotation (and then it can be fine-tuned with the "manual" rotation)
3. able to have a map in the background (or selection of bg pictures/colours)
4. Fullscreen preview (at 640x480)
5. cursor preview (replaces the mouse cursor)
etc.

Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: Interface Maker source?
« Reply #1 on: August 11, 2006, 10:00:51 am »
Please. I absolutely need this. Also, the test slider should change the weapon name according to length of name.
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

Offline rainrider

  • Soldier
  • **
  • Posts: 145
    • rrhp
Re: Interface Maker source?
« Reply #2 on: August 11, 2006, 11:02:45 am »
Ive reverse engineered it long time ago. If you rly want so I can do it again and post structure.

Offline MofoNofo

  • Veteran
  • *****
  • Posts: 1019
Re: Interface Maker source?
« Reply #3 on: August 11, 2006, 11:10:23 am »
. . . YES! :D please.

Offline rainrider

  • Soldier
  • **
  • Posts: 145
    • rrhp
Re: Interface Maker source?
« Reply #4 on: August 11, 2006, 05:28:13 pm »
#ifndef __cplusplus
  #define bool unsigned char
  #define true 1
  #define false 0
#endif

typedef struct {
  unsigned char byInterfaceAlpha;
  bool bHealthIconVisible;
  bool bAmmoIconVisible;
  bool bVestBarVisible;
  bool bJetBarIconVisible;
  bool bNadesBarVisible;
  bool bAmmoCountVisible;
  bool bWeaponNameVisible;
  bool bBulletBarVisible;
  bool bTeamBoxVisible;
  bool bPingDotVisible;
  bool bStatsIconVisible;
  int iHealthIconLeft;
  int iHealthIconTop;
  int iHealthIconAngle;
  int iHealthBarLeft;
  int iHealthBarTop;
  int iHealthBarWidth; /* read-only */
  int iHealthBarHeight; /* read-only */
  int iHealthBarType;
  int iHealthBarAngle;
  int iAmmoIconLeft;
  int iAmmoIconTop;
  int iAmmoIconAngle;
  int iAmmoBarLeft;
  int iAmmoBarTop;
  int iAmmoBarWidth; /* read-only */
  int iAmmoBarHeight; /* read-only */
  int iAmmoBarType;
  int iAmmoBarAngle;
  int iJetsIconLeft;
  int iJetsIconTop;
  int iJetsIconAngle;
  int iJetsBarLeft;
  int iJetsBarTop;
  int iJetsBarWidth; /* read-only */
  int iJetsBarHeight; /* read-only */
  int iJetsBarType;
  int iJetsBarAngle;
  int iVestBarLeft;
  int iVestBarTop;
  int iVestBarWidth; /* read-only */
  int iVestBarHeight; /* read-only */
  int iVestBarType;
  int iVestBarAngle;
  int iNadesBarLeft;
  int iNadesBarWidth;
  int iNadeWidth; /* read-only */
  int iNadeHeight; /* read-only */
  int iNadesBarType;
  int iAmmoCountLeft;
  int iAmmoCountTop;
  int iWeaponNameLeft;
  int iWeaponNameTop;
  int iBulletBarLeft;
  int iBulletBarTop;
  int iBulletBarAngle;
  int iBulletBorderLeft;
  int iBulletBorderTop;
  int iBulletBarWidth;
  int iBulletBarHeight;
  int iBulletBarType;
  int iBulletBorderAngle;
  int iTeamBoxLeft;
  int iTeamBoxTop;
  int iPingDotLeft;
  int iPingDotTop;
  int iStatTextLeft;
  int iStatTextTop;
 } SIF;

typedef enum {
  BAR_TEXT,
  BAR_HORIZONTAL,
  BAR_VERTICAL
 } BarTypes;

/*
int main ( ) { printf ( "%i", sizeof ( SIF ) ); }
will output 240, exact size in bytes of .SIF file.
*/

Offline MofoNofo

  • Veteran
  • *****
  • Posts: 1019
Re: Interface Maker source?
« Reply #5 on: August 11, 2006, 08:22:58 pm »
Thanks :)

Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: Interface Maker source?
« Reply #6 on: August 11, 2006, 08:37:22 pm »
Mofo, cursor transparency can be done by renaming a translucent PNG to BMP. Soldat will still recognize the PNGness of it.
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

Offline MofoNofo

  • Veteran
  • *****
  • Posts: 1019
Re: Interface Maker source?
« Reply #7 on: August 11, 2006, 09:24:19 pm »
But you can also do it in the soldat.ini