Game Development Community

dev|Pro Game Development Curriculum

Horizontal Compass Ctrl TSE

by Andrea Fraboni · 11/13/2006 (4:43 pm) · 6 comments

Download Code File

This is a simple convertion of old TGE code for a horizontal compass implementation. This is based on Horizontal compass written by Stefan "Beffy" Moises. The basic code (well, almost everything... ;-) for this compass gui was written by Xavier "eXoDuS" Amado. (with special thanks go to Matt for his compass code).

- Extract the compressed file horizCompassCtrl.rar.

- Copy horizCompassCtrl.cpp and horizCompassCtrl.h in engine/game/fps.

- Copy images : uicompass.jpg and uibackgroundcompass.png in starter.fps/client/ui or in your mod directoyy.

- Then edit playGui.gui in starter.fps/client/ui add :

new HorizCompassCtrl() {
      profile = "GuiDefaultProfile";
      horizSizing = "left";
      vertSizing = "top";
      position = "523 448";
      extent = "108 24";
      minExtent = "8 8";
      visible = "1";
      helpTag = "0";
      bitmap = "./uicompass.jpg";
      OuterRingBitmap = "./uibackgroundcompass.png";
      FontWidth = "16";
   };

recompile your engine and test the new implementation.

This code is tested with TSE 0_4_5_0

About the author

ASTRO SLAYERS my first game is on iTunes : https://itunes.apple.com/it/app/astro-slayers/id458581104?mt=8


#1
05/15/2007 (3:42 am)
Great resource! :) Thanks - exactly what we need for our RPG project...
#2
05/16/2007 (2:00 pm)
very very nice!! I've been looking for some sort of navigation for my project and this works great.....couldn't have made it any easier....
#3
11/17/2007 (6:32 pm)
LOOKS NICE!!
#4
12/24/2007 (10:22 am)
Reminds me of Oblivion. :)
5/5.
#6
10/17/2010 (12:20 am)
TGEA 1.8.2: Download File
Was going to make a whole new resource, and still might since i don't think many people will come to this resource with it saying TSE, but for now I am just posting the link to the new files here.