June 9, 200223 yr From gauges.h:#define MAKE_STRING( NAME, NEXT_LIST, FAILURE, DRAW_FLAGS, ASI_FLAGS, POSITION_X, POSITION_Y, SIZE_X, SIZE_Y, NUM_CHARS, SOURCE_VAR_1, SOURCE_VAR_2, SOURCE_VAR_3, FORECOLOR, BACKCOLOR, HILITECOLOR, FONT_NAME, FONT_WEIGHT, FONT_CHARSET, FONT_SIZE, DRAW_TEXT_FLAGS, HILITE_LIST, CALLBACK)Now can anyone explain to me why there are three SOURCE_VARs and what they're for. I mean I's understand if there'd be one, but why three and how to use them?? :-hmmmThanx in advance :-)http://flightsimmers.net/airport/etti/signature_pro.jpg
June 9, 200223 yr If you read the SDK documentation you will find out why there are 3.SOURCE_VAR_1 Contains the token variable used to update the string. The string can contain numbers, characters, or both. If you want to set your variable values, enter MODULE_VAR_NONE.SOURCE_VAR_2 Used to look up multiple token variables to update the string. (e.g., Hours, Minutes, Seconds). Sequence them inside the callback function. SOURCE_VAR_3 Pretty much the same as SOURCE_VAR_2Using the example from in the SDK docs,MAKE_STRING( temperature_string, NULL, temperature_fail, IMAGE_USE_ERASE | IMAGE_USE_BRIGHT, 0, 28, 9, 60, 29, 3, TOTAL_AIR_TEMP, <<<< 1 DISPLAY_UNITS, <<<< 2 MODULE_VAR_NONE, <<<< 3 RGB(255,0,0), RGB(0,0,0), RGB(92,92,92), GAUGE_FONT_DEFAULT, GAUGE_WEIGHT_DEFAULT, GAUGE_CHARSET, 0, DT_CENTER | DT_VCENTER | DT_SINGLELINE, NULL, temperature_string_cb)String will be source var 1 + source var 2 (3 is set to non so isn`t used)If the TAT is 60 degrees and the DISPLAY_UNITS are degrees C the string will be "60C"You would use all 3 in a clock for example, SV1 = Hours SV2 = Mins SV3 = SecsChrishttp://thegreatptmd.tripod.com
June 10, 200223 yr Author Yeah I read it but now I got it. Thank you! :-)Regards :-wave from EDDFhttp://flightsimmers.net/airport/etti/signature_pro.jpg
Create an account or sign in to comment