Hallo zusammen,
ich habe ein Script, was ich so erstellt habe, dass es per #include in ein anderes Script eingebunden werden kann. In dem Script, was eingebunden werden soll, ist auch eine GUI enthalten, die Icons besitzt. Es ist so konzepiert, dass ich es auch anderen zugänglich machen möchte...
Nun habe ich aber folgendes Problem: Die Pfadangaben zu den Icons müssten jedes Mal angepasst werden, da das Script sie nicht selbst ermitteln kann.
Gibt es eine Möglichkeit, wie ich das Script so gestalten kann, dass es selbst weiß, wo die Icons sind, egal wo man das ganze hinkopiert?
Ich weiß ja, dass das geht, sofern die Icons sich in einem Ordner oder Unterordner mit dem Script befinden. Leider ist das ja nicht von dem einzubindenden Script, sondern von dem Script abhängig, in das es eingebunden wird.
Kann mir da vielleicht jemand weiterhelfen?
LG FKFK