1.14.1 is up now!
on ui_control(knb_control_x)
control -> POS_X := knb_control_x
end on
on ui_control(knb_control_y)
control -> POS_Y := knb_control_y
end on
on ui_control($knb_control_x)
set_control_par(get_ui_id($sli_dirt),$CONTROL_PAR_POS_X,get_ui_id($knb_control_x))
end on
on ui_control($knb_control_y)
set_control_par(get_ui_id($sli_dirt),$CONTROL_PAR_POS_Y,get_ui_id($knb_control_y))
end on
Just did. Bug is still there... :(This has been fixed since 1.4.2 release, do a manual update to the latest state of the SublimeKSP repo.
{ from an imported file }
USE_CODE_IF_NOT(MIDI_NOTE_COUNT)
define MIDI_NOTE_COUNT := 128
END_USE_CODE
{ elsewhere}
USE_CODE_IF_NOT(MIDI_NOTE_COUNT)
define MIDI_NOTE_COUNT := 128
END_USE_CODE
USE_CODE_IF_NOT(define_name)
that I could override if I wanted by defining the same define name with a different value in my project file just above where I import the library file. What would be a good way to do the same thing now? They need to be constants that can be evaluated at compile time.on init
declare x
end on
import "import_fle.ksp"
on init
declare !multi_dimensional_string_array[2, 2]
end on
Hi Tonewill,I just need to override the odd define on a project basic so I've just added a SET_CONDITION(DEFINE_NAME) along with the define to solve the problem so my code compiles again. It's fine.
Found a problem with combine callbacks though which is this:
Imported file:
Code:on init declare x end on
main file:
Code:import "import_fle.ksp" on init declare !multi_dimensional_string_array[2, 2] end on
Syntax error. Works fine with normal string arrays.
# Define a rule so we can track line numbers
def t_COMMENT(t):
r'\{[^}]*?\}|\(\*[\w\W]*?\*\)'
t.lexer.lineno += t.value.count('\n')
pass