| Plugin Development Extend the functionality of Centrafuse by developing plugins |
 |
|
January 9th, 2009, 11:09 AM
|
#11 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
Sure, you can do that.
Alternatively you can set up an array with only 8 strings and use
Code:
int dir = (int)(degree/45f);
if (dir >= 0 && dir < 8)
return directions[dir];
instead.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
|
The Following User Says Thank You to Zorro For This Useful Post:
|
|
January 9th, 2009, 05:25 PM
|
#12 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
Thanks In today drive Im test first option and work ok. Now Im change it to this last and use 8 string array:
Code:
private readonly string[] directions = new[] { "E", "SE", "S", "SW", "W", "NW", "N","NE" };
Thanks for your help.
Tomorrow I will release plugin...
__________________
If you like my work you can DONATE me...
|
|
|
January 9th, 2009, 05:35 PM
|
#13 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
You're welcome.
Don't forget to add your work on SPBA
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
|
The Following User Says Thank You to Zorro For This Useful Post:
|
|
January 11th, 2009, 10:18 AM
|
#14 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
First version is uploaded(Moderators must approve it).
After testings and positive feedbacks I will upload it ti SPBA too(and GPStrack plugin)...
P.S. Im test it with GlobalSat BU-353 and GlobalSat ET-332.
__________________
If you like my work you can DONATE me...
Last edited by _Dejan_; January 11th, 2009 at 10:21 AM.
|
|
|
|
The Following 2 Users Say Thank You to _Dejan_ For This Useful Post:
|
|
January 13th, 2009, 04:21 PM
|
#15 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
Jeah 2 days and file is not approverd yet...
What work CF Team?
__________________
If you like my work you can DONATE me...
|
|
|
January 13th, 2009, 07:16 PM
|
#16 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Feb 2008
Posts: 929
|
Did they ALL go to CES?? lol
|
|
|
January 14th, 2009, 01:22 AM
|
#17 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
But is not CES finished?
__________________
If you like my work you can DONATE me...
|
|
|
January 14th, 2009, 08:52 AM
|
#18 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Feb 2008
Posts: 929
|
Dunno...
They promised to look at a system.log for me as well after CES...
|
|
|
January 17th, 2009, 07:33 AM
|
#19 (permalink)
|
|
7 Farad - Super Capacity
Join Date: Apr 2008
Location: South Korea
Vehicle: Hyundai YF SONATA
Posts: 131
|
Dejan,
thanks for your plugins...
The direction display of gps engine is English.
The possibility to change a direction display with the Korean language is?
like this
"E"="동", "SE"="남동", "S"="남", "SW"="남서", "W"="서",
"NW"="북서", "N"="북" , "NE"="북동"
|
|
|
January 17th, 2009, 09:19 AM
|
#20 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Aug 2007
Location: Slovenia
Vehicle: Fiat Stilo 1.9JTD 163HP
Posts: 1,727
|
In current version is this imposible.
I can add feature if find in YourLanguage.xml file definition of this directions then use it otherwise use english directions... but in this case you must yourself add few lines in your language file...
__________________
If you like my work you can DONATE me...
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|