Help for complete javaScript code

0 favourites
  • 1 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi all

    I want Add css style to rex-bboxtext plugin

    In runtime.js file i whant add css style(like direction= rtl) by jquery,

    But i have some problem,

    Please help me to complete this small of code:

    jQuery("*").css("direction", "rtl");

    by use this code i have this css style(direction) for all element inside the my layout

    I insert it below line 78 in runtime.js

    Like this:

    instanceProto.onCreate = function() { jQuery("*").css("direction", "rtl"); this.text = ""; this.set_text(this.properties[0]); this.visible = (this.properties[1] === 0); // 0=visible, 1=invisible // "[bold|italic] 12pt Arial" this.font = this.properties[2]; this.color = this.properties[3]; this.halign = this.properties[4]; // 0=left, 1=center, 2=right this.valign = this.properties[5]; // 0=top, 1=center, 2=bottom this.textShadow = "";

    .but i want that for this bboxtext object.like textBox object that use this.elem instide of * value.

    I konw some javascript & jquery but i cant fix this problem.

    Please help me to fix this code line

    Plugin link.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)