/* DO NOT EDIT THIS FILE - it is machine generated (JCGO_116) */

#ifdef JCGO_SEPARATED
#define JCGO_116
#include "jcgortl.h"
#include "Main.h"
#endif

#ifdef JCGO_116

#ifdef CHKALL_Panel
#include "jcgobchk.h"
#endif

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawBox__IIII( package_Panel This, jint x, jint y,
 jint width, jint height )
{
 {
  jObject jcgo_rcvrL1;
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__setBounds__IIII(
   (package_Surface)jcgo_rcvrL1, x, y, x + width, y + height));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawGradient__IIIIII(
   (package_Surface)jcgo_rcvrL1, x, y, width, height, JCGO_FIELD_NZACCESS(This,
   colourBoxLeftNRight), JCGO_FIELD_NZACCESS(This, colourBoxTopNBottom)));
  if (package_Panel__drawBackgroundArrow)
  {
   {
    jint i1;
    i1= x - (y & (jint)63);
    for (; i1 < x + width; i1+= (jint)128)
    {
     {
      jint j1;
      j1= y - (y & (jint)31);
      for (; j1 < y + height; j1+= (jint)128)
      {
       jObject jcgo_rcvrL1;
       (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
        package_Surface__drawSpriteAlpha__IIII(
        (package_Surface)jcgo_rcvrL1, i1, j1, package_Panel__baseSpriteStart +
        (jint)6, (jint)128));
      }
     }
    }
   }
  }
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x, y, width, JCGO_FIELD_NZACCESS(This,
   colourBoxTopNBottom)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)1, y + (jint)1, width -
   (jint)2, JCGO_FIELD_NZACCESS(This, colourBoxTopNBottom)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)2, y + (jint)2, width -
   (jint)4, JCGO_FIELD_NZACCESS(This, colourBoxTopNBottom2)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, x, y, height, JCGO_FIELD_NZACCESS(This,
   colourBoxTopNBottom)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)1, y + (jint)1, height -
   (jint)2, JCGO_FIELD_NZACCESS(This, colourBoxTopNBottom)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)2, y + (jint)2, height -
   (jint)4, JCGO_FIELD_NZACCESS(This, colourBoxTopNBottom2)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x, (y + height) - (jint)1, width,
   JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)1, (y + height) - (jint)2,
   width - (jint)2, JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)2, (y + height) - (jint)3,
   width - (jint)4, JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight2)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, (x + width) - (jint)1, y, height,
   JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, (x + width) - (jint)2, y + (jint)1,
   height - (jint)2, JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, (x + width) - (jint)3, y + (jint)2,
   height - (jint)4, JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight2)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__resetBounds__(
   (package_Surface)jcgo_rcvrL1));
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawLineHoriz__III( package_Panel This, jint x, jint
 y, jint width )
{
 {
  jObject jcgo_rcvrL1;
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x, y, width, (jint)16777215L));
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawTextList__IIIIIILsAII( package_Panel This, jObjectArr
 listEntries, jint control, jint x, jint y, jint width, jint height,
 jint textSize, jint listEntryCount, jint l1 )
{
 {
  jint displayedEntryCount;
  jint entryListStartY;
  jint y2;
  jObject jcgo_rcvrL1;
  displayedEntryCount= jcgo_div(height, (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
   surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)));
  if (l1 > listEntryCount - displayedEntryCount)
  {
   l1= listEntryCount - displayedEntryCount;
  }
  if (l1 < 0)
  {
   l1= 0;
  }
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText), control)=
   l1;
  if (displayedEntryCount < listEntryCount)
  {
   jint cornerTopRight;
   jint cornerBottomLeft;
   jint j3;
   cornerTopRight= (x + width) - (jint)12;
   cornerBottomLeft= jcgo_div(((height - (jint)27) * displayedEntryCount),
    listEntryCount);
   if (cornerBottomLeft < (jint)6)
   {
    cornerBottomLeft= (jint)6;
   }
   j3= jcgo_div(((height - (jint)27 - cornerBottomLeft) * l1), (listEntryCount -
    displayedEntryCount));
   if (JCGO_FIELD_NZACCESS(This, mouseButtonDown) == (jint)1 && JCGO_FIELD_NZACCESS(This,
    mouseX) >= cornerTopRight && JCGO_FIELD_NZACCESS(This, mouseX) <=
    cornerTopRight + (jint)12)
   {
    if (JCGO_FIELD_NZACCESS(This, mouseY) > y && JCGO_FIELD_NZACCESS(This,
     mouseY) < y + (jint)12 && l1 > 0)
    {
     l1--;
    }
    if (JCGO_FIELD_NZACCESS(This, mouseY) > (y + height) - (jint)12 &&
     JCGO_FIELD_NZACCESS(This, mouseY) < y + height && l1 < listEntryCount -
     displayedEntryCount)
    {
     l1++;
    }
    JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText),
     control)= l1;
   }
   if (JCGO_FIELD_NZACCESS(This, mouseButtonDown) == (jint)1 && ((JCGO_FIELD_NZACCESS(This,
    mouseX) >= cornerTopRight && JCGO_FIELD_NZACCESS(This, mouseX) <=
    cornerTopRight + (jint)12) || (JCGO_FIELD_NZACCESS(This, mouseX) >=
    cornerTopRight - (jint)12 && JCGO_FIELD_NZACCESS(This, mouseX) <=
    cornerTopRight + (jint)24 && JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This,
    controlListScrollbarHandleDragged), control))))
   {
    if (JCGO_FIELD_NZACCESS(This, mouseY) > y + (jint)12 && JCGO_FIELD_NZACCESS(This,
     mouseY) < (y + height) - (jint)12)
    {
     jint l3;
     JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlListScrollbarHandleDragged),
      control)= (jboolean)jtrue;
     l3= JCGO_FIELD_NZACCESS(This, mouseY) - y - (jint)12 - cornerBottomLeft /
      (jint)2;
     l1= jcgo_div((l3 * listEntryCount), (height - (jint)24));
     if (l1 > listEntryCount - displayedEntryCount)
     {
      l1= listEntryCount - displayedEntryCount;
     }
     if (l1 < 0)
     {
      l1= 0;
     }
     JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText),
      control)= l1;
    }
   }
   else
   {
    JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlListScrollbarHandleDragged),
     control)= (jboolean)jfalse;
   }
   j3= jcgo_div(((height - (jint)27 - cornerBottomLeft) * l1), (listEntryCount -
    displayedEntryCount));
   (package_Panel__drawListContainer__IIIIII(
    This, x, y, width, height, j3, cornerBottomLeft));
  }
  entryListStartY= height - displayedEntryCount * (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
   surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize));
  y2= y + ((jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
   JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)) * (jint)5) / (jint)6 +
   entryListStartY / (jint)2;
  {
   jint entry;
   entry= l1;
   for (; entry < listEntryCount; entry++)
   {
    jObject jcgo_rcvrL1;
    jint jcgo_rcvrI1;
    (package_Panel__drawstring__IIILsI(
     This, ((java_lang_String)JCGO_ARRAY_LACCESS(listEntries, entry)),
     control, x + (jint)2, y2, textSize));
    y2+= (jcgo_rcvrI1= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
     surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
     (package_Surface)jcgo_rcvrL1, textSize)), jcgo_rcvrI1 - package_Panel__textListEntryHeightMod);
    if (y2 >= y + height)
    {
     return;
    }
   }
  }
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawTextInput__IIIIILsI( package_Panel This, java_lang_String
 text, jint control, jint x, jint y, jint width, jint height, jint
 textSize )
{
 {
  jint y2;
  jObject jcgo_rcvrL1;
  if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlMaskText),
   control))
  {
   jint len;
   len= (JCGO_CALL_FINALF(text) java_lang_String__length__(
    text));
   text= JCGO_STRREF_OF(jcgo_string3_String6D);
   {
    jint i2;
    i2= 0;
    for (; i2 < len; i2++)
    {
     text= java_lang_VMSystem__concat0X__LsLs(
      text, JCGO_STRREF_OF(jcgo_string2_PanelA73));
    }
   }
  }
  if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), control) ==
   (jint)5)
  {
   if (JCGO_FIELD_NZACCESS(This, mouseLastButtonDown) == (jint)1 &&
    JCGO_FIELD_NZACCESS(This, mouseX) >= x && JCGO_FIELD_NZACCESS(This,
    mouseY) >= y - height / (jint)2 && JCGO_FIELD_NZACCESS(This, mouseX) <=
    x + width && JCGO_FIELD_NZACCESS(This, mouseY) <= y + height /
    (jint)2)
   {
    JCGO_FIELD_NZACCESS(This, focusControlIndex)= control;
   }
  }
  else
  {
   if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), control) ==
    (jint)6)
   {
    jObject jcgo_rcvrL1;
    if (JCGO_FIELD_NZACCESS(This, mouseLastButtonDown) == (jint)1 &&
     JCGO_FIELD_NZACCESS(This, mouseX) >= x - width / (jint)2 && JCGO_FIELD_NZACCESS(This,
     mouseY) >= y - height / (jint)2 && JCGO_FIELD_NZACCESS(This, mouseX) <=
     x + width / (jint)2 && JCGO_FIELD_NZACCESS(This, mouseY) <= y +
     height / (jint)2)
    {
     JCGO_FIELD_NZACCESS(This, focusControlIndex)= control;
    }
    x-= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
     JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textWidth__LsI(
     (package_Surface)jcgo_rcvrL1, text, textSize)) / (jint)2;
   }
  }
  if (JCGO_FIELD_NZACCESS(This, focusControlIndex) == control)
  {
   text= java_lang_VMSystem__concat0X__LsLs(
    text, JCGO_STRREF_OF(jcgo_string188_Mdclnt));
  }
  y2= y + (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
   JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)) / (jint)3;
  (package_Panel__drawstring__IIILsI(
   This, text, control, x, y2, textSize));
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawOptionListHoriz__IIIILsA( package_Panel This, jObjectArr
 listEntries, jint control, jint x, jint y, jint textSize )
{
 {
  jint listTotalTextWidth;
  jint listEntryCount;
  jint left;
  jint bottom;
  jObject jcgo_rcvrL1;
  listTotalTextWidth= 0;
  listEntryCount= JCGO_ARRAY_LENGTH(listEntries);
  {
   jint idx;
   idx= 0;
   for (; idx < listEntryCount; idx++)
   {
    jObject jcgo_rcvrL1;
    listTotalTextWidth+= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
     surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textWidth__LsI(
     (package_Surface)jcgo_rcvrL1, ((java_lang_String)JCGO_ARRAY_NZLACCESS(listEntries,
     idx)), textSize));
    if (idx < listEntryCount - (jint)1)
    {
     jObject jcgo_rcvrL1;
     listTotalTextWidth+= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
      surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textWidth__LsI(
      (package_Surface)jcgo_rcvrL1, JCGO_STRREF_OF(jcgo_string3_PanelA73),
      textSize));
    }
   }
  }
  left= x - listTotalTextWidth / (jint)2;
  bottom= y + (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
   JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)) / (jint)3;
  {
   jint idx;
   idx= 0;
   for (; idx < listEntryCount; idx++)
   {
    jint colour;
    jObject jcgo_rcvrL1;
    jint jcgo_rcvrI1;
    if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
     control))
    {
     colour= (jint)16777215L;
    }
    else
    {
     colour= 0;
    }
    if (JCGO_FIELD_NZACCESS(This, mouseX) >= left && (jcgo_rcvrI1=
     JCGO_FIELD_NZACCESS(This, mouseX), jcgo_rcvrI1 <= left + (jcgo_rcvrL1=
     (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
     package_Surface__textWidth__LsI(
     (package_Surface)jcgo_rcvrL1, ((java_lang_String)JCGO_ARRAY_NZLACCESS(listEntries,
     idx)), textSize))) && JCGO_FIELD_NZACCESS(This, mouseY) <= bottom &&
     (jcgo_rcvrI1= JCGO_FIELD_NZACCESS(This, mouseY), jcgo_rcvrI1 >
     bottom - (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
     JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
     (package_Surface)jcgo_rcvrL1, textSize))))
    {
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
      control))
     {
      colour= (jint)8421504L;
     }
     else
     {
      colour= (jint)16777215L;
     }
     if (JCGO_FIELD_NZACCESS(This, mouseLastButtonDown) == (jint)1)
     {
      JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
       control)= idx;
      JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked),
       control)= (jboolean)jtrue;
     }
    }
    if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
     control) == idx)
    {
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
      control))
     {
      colour= (jint)16711680L;
     }
     else
     {
      colour= (jint)12582912L;
     }
    }
    (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
     package_Surface__drawstring__LsIIII(
     (package_Surface)jcgo_rcvrL1, ((java_lang_String)JCGO_ARRAY_NZLACCESS(listEntries,
     idx)), left, bottom, textSize, colour));
    left+= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
     JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textWidth__LsI(
     (package_Surface)jcgo_rcvrL1, java_lang_VMSystem__concat0X__LsLs(
     ((java_lang_String)JCGO_ARRAY_NZLACCESS(listEntries, idx)), JCGO_STRREF_OF(jcgo_string3_PanelA73)),
     textSize));
   }
  }
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawOptionListVert__IIIILsA( package_Panel This, jObjectArr
 listEntries, jint control, jint x, jint y, jint textSize )
{
 {
  jint listEntryCount;
  jint listTotalTextHeightMid;
  jObject jcgo_rcvrL1;
  listEntryCount= JCGO_ARRAY_LENGTH(listEntries);
  listTotalTextHeightMid= y - ((jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
   surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)) * (listEntryCount - (jint)1)) /
   (jint)2;
  {
   jint idx;
   idx= 0;
   for (; idx < listEntryCount; idx++)
   {
    jint colour;
    jint entryTextWidth;
    jObject jcgo_rcvrL1;
    jint jcgo_rcvrI1;
    if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
     control))
    {
     colour= (jint)16777215L;
    }
    else
    {
     colour= 0;
    }
    entryTextWidth= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
     surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textWidth__LsI(
     (package_Surface)jcgo_rcvrL1, ((java_lang_String)JCGO_ARRAY_NZLACCESS(listEntries,
     idx)), textSize));
    if (JCGO_FIELD_NZACCESS(This, mouseX) >= x - entryTextWidth / (jint)2 &&
     JCGO_FIELD_NZACCESS(This, mouseX) <= x + entryTextWidth / (jint)2 &&
     JCGO_FIELD_NZACCESS(This, mouseY) - (jint)2 <= listTotalTextHeightMid &&
     (jcgo_rcvrI1= JCGO_FIELD_NZACCESS(This, mouseY) - (jint)2, jcgo_rcvrI1 >
     listTotalTextHeightMid - (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
     surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
     (package_Surface)jcgo_rcvrL1, textSize))))
    {
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
      control))
     {
      colour= (jint)8421504L;
     }
     else
     {
      colour= (jint)16777215L;
     }
     if (JCGO_FIELD_NZACCESS(This, mouseLastButtonDown) == (jint)1)
     {
      JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
       control)= idx;
      JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked),
       control)= (jboolean)jtrue;
     }
    }
    if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
     control) == idx)
    {
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
      control))
     {
      colour= (jint)16711680L;
     }
     else
     {
      colour= (jint)12582912L;
     }
    }
    (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
     package_Surface__drawstring__LsIIII(
     (package_Surface)jcgo_rcvrL1, ((java_lang_String)JCGO_ARRAY_NZLACCESS(listEntries,
     idx)), x - entryTextWidth / (jint)2, listTotalTextHeightMid, textSize,
     colour));
    listTotalTextHeightMid+= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
     surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
     (package_Surface)jcgo_rcvrL1, textSize));
   }
  }
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawTextListInteractive__IIIIIILsAII( package_Panel
 This, jObjectArr listEntries, jint control, jint x, jint y, jint width,
 jint height, jint textSize, jint listEntryCount, jint l1 )
{
 {
  jint displayedEntryCount;
  jint k2;
  jint i3;
  jObject jcgo_rcvrL1;
  displayedEntryCount= jcgo_div(height, (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
   surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)));
  if (displayedEntryCount < listEntryCount)
  {
   jint right;
   jint l2;
   jint j3;
   right= (x + width) - (jint)12;
   l2= jcgo_div(((height - (jint)27) * displayedEntryCount), listEntryCount);
   if (l2 < (jint)6)
   {
    l2= (jint)6;
   }
   j3= jcgo_div(((height - (jint)27 - l2) * l1), (listEntryCount -
    displayedEntryCount));
   if (JCGO_FIELD_NZACCESS(This, mouseButtonDown) == (jint)1 && JCGO_FIELD_NZACCESS(This,
    mouseX) >= right && JCGO_FIELD_NZACCESS(This, mouseX) <= right +
    (jint)12)
   {
    if (JCGO_FIELD_NZACCESS(This, mouseY) > y && JCGO_FIELD_NZACCESS(This,
     mouseY) < y + (jint)12 && l1 > 0)
    {
     l1--;
    }
    if (JCGO_FIELD_NZACCESS(This, mouseY) > (y + height) - (jint)12 &&
     JCGO_FIELD_NZACCESS(This, mouseY) < y + height && l1 < listEntryCount -
     displayedEntryCount)
    {
     l1++;
    }
    JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText),
     control)= l1;
   }
   if (JCGO_FIELD_NZACCESS(This, mouseButtonDown) == (jint)1 && ((JCGO_FIELD_NZACCESS(This,
    mouseX) >= right && JCGO_FIELD_NZACCESS(This, mouseX) <= right +
    (jint)12) || (JCGO_FIELD_NZACCESS(This, mouseX) >= right - (jint)12 &&
    JCGO_FIELD_NZACCESS(This, mouseX) <= right + (jint)24 && JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This,
    controlListScrollbarHandleDragged), control))))
   {
    if (JCGO_FIELD_NZACCESS(This, mouseY) > y + (jint)12 && JCGO_FIELD_NZACCESS(This,
     mouseY) < (y + height) - (jint)12)
    {
     jint l3;
     JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlListScrollbarHandleDragged),
      control)= (jboolean)jtrue;
     l3= JCGO_FIELD_NZACCESS(This, mouseY) - y - (jint)12 - l2 / (jint)2;
     l1= jcgo_div((l3 * listEntryCount), (height - (jint)24));
     if (l1 < 0)
     {
      l1= 0;
     }
     if (l1 > listEntryCount - displayedEntryCount)
     {
      l1= listEntryCount - displayedEntryCount;
     }
     JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText),
      control)= l1;
    }
   }
   else
   {
    JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlListScrollbarHandleDragged),
     control)= (jboolean)jfalse;
   }
   j3= jcgo_div(((height - (jint)27 - l2) * l1), (listEntryCount -
    displayedEntryCount));
   (package_Panel__drawListContainer__IIIIII(
    This, x, y, width, height, j3, l2));
  }
  else
  {
   l1= 0;
   JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText),
    control)= 0;
  }
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseOver),
   control)= (-(jint)1);
  k2= height - displayedEntryCount * (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
   surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize));
  i3= y + ((jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
   JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)) * (jint)5) / (jint)6 +
   k2 / (jint)2;
  {
   jint k3;
   k3= l1;
   for (; k3 < listEntryCount; k3++)
   {
    jint i4;
    jObject jcgo_rcvrL1;
    jint jcgo_rcvrI1;
    if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
     control))
    {
     i4= (jint)16777215L;
    }
    else
    {
     i4= 0;
    }
    if (JCGO_FIELD_NZACCESS(This, mouseX) >= x + (jint)2 && (jcgo_rcvrI1=
     JCGO_FIELD_NZACCESS(This, mouseX), jcgo_rcvrI1 <= x + (jint)2 +
     (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
     package_Surface__textWidth__LsI(
     (package_Surface)jcgo_rcvrL1, ((java_lang_String)JCGO_ARRAY_LACCESS(listEntries,
     k3)), textSize))) && JCGO_FIELD_NZACCESS(This, mouseY) - (jint)2 <=
     i3 && (jcgo_rcvrI1= JCGO_FIELD_NZACCESS(This, mouseY) - (jint)2,
     jcgo_rcvrI1 > i3 - (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
     surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
     (package_Surface)jcgo_rcvrL1, textSize))))
    {
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
      control))
     {
      i4= (jint)8421504L;
     }
     else
     {
      i4= (jint)16777215L;
     }
     JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseOver),
      control)= k3;
     if (JCGO_FIELD_NZACCESS(This, mouseLastButtonDown) == (jint)1)
     {
      JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
       control)= k3;
      JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked),
       control)= (jboolean)jtrue;
     }
    }
    if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
     control) == k3 && JCGO_FIELD_NZACCESS(This, aBoolean219))
    {
     i4= (jint)16711680L;
    }
    (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
     package_Surface__drawstring__LsIIII(
     (package_Surface)jcgo_rcvrL1, ((java_lang_String)JCGO_ARRAY_LACCESS(listEntries,
     k3)), x + (jint)2, i3, textSize, i4));
    i3+= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
     JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
     (package_Surface)jcgo_rcvrL1, textSize));
    if (i3 >= y + height)
    {
     return;
    }
   }
  }
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawRoundedBox__IIII( package_Panel This, jint x, jint
 y, jint width, jint height )
{
 {
  jObject jcgo_rcvrL1;
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawBox__IIIII(
   (package_Surface)jcgo_rcvrL1, x, y, width, height, 0));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawBoxEdge__IIIII(
   (package_Surface)jcgo_rcvrL1, x, y, width, height, JCGO_FIELD_NZACCESS(This,
   colourRoundedBoxOut)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawBoxEdge__IIIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)1, y + (jint)1, width -
   (jint)2, height - (jint)2, JCGO_FIELD_NZACCESS(This, colourRoundedBoxMid)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawBoxEdge__IIIII(
   (package_Surface)jcgo_rcvrL1, x + (jint)2, y + (jint)2, width -
   (jint)4, height - (jint)4, JCGO_FIELD_NZACCESS(This, colourRoundedBoxIn)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawSprite__III(
   (package_Surface)jcgo_rcvrL1, x, y, package_Panel__baseSpriteStart +
   (jint)2));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawSprite__III(
   (package_Surface)jcgo_rcvrL1, (x + width) - (jint)7, y, package_Panel__baseSpriteStart +
   (jint)3));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawSprite__III(
   (package_Surface)jcgo_rcvrL1, x, (y + height) - (jint)7, package_Panel__baseSpriteStart +
   (jint)4));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawSprite__III(
   (package_Surface)jcgo_rcvrL1, (x + width) - (jint)7, (y + height) -
   (jint)7, package_Panel__baseSpriteStart + (jint)5));
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawPicture__III( package_Panel This, jint x, jint
 y, jint size )
{
 {
  jObject jcgo_rcvrL1;
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawSprite__III(
   (package_Surface)jcgo_rcvrL1, x, y, size));
 }
}

JCGO_NOSEP_INLINE void CFASTCALL
package_Panel__drawCheckbox__IIIII( package_Panel This, jint control,
 jint x, jint y, jint width, jint height )
{
 {
  jObject jcgo_rcvrL1;
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawBox__IIIII(
   (package_Surface)jcgo_rcvrL1, x, y, width, height, (jint)16777215L));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x, y, width, JCGO_FIELD_NZACCESS(This,
   colourBoxTopNBottom)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, x, y, height, JCGO_FIELD_NZACCESS(This,
   colourBoxTopNBottom)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x, (y + height) - (jint)1, width,
   JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, (x + width) - (jint)1, y, height,
   JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight)));
  if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
   control) == (jint)1)
  {
   {
    jint j1;
    j1= 0;
    for (; j1 < height; j1++)
    {
     jObject jcgo_rcvrL1;
     (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
      package_Surface__drawLineHoriz__IIII(
      (package_Surface)jcgo_rcvrL1, x + j1, y + j1, (jint)1, 0));
     (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
      package_Surface__drawLineHoriz__IIII(
      (package_Surface)jcgo_rcvrL1, (x + width) - (jint)1 - j1, y +
      j1, (jint)1, 0));
    }
   }
  }
 }
}

JCGO_NOSEP_STATIC package_Panel CFASTCALL
package_Panel__this__L0s0x4I( package_Panel This, package_Surface
 surface, jint max_7e1 )
{
 {
  ;
  JCGO_FIELD_NZACCESS(This, focusControlIndex)= (-(jint)1);
  JCGO_FIELD_NZACCESS(This, aBoolean219)= (jboolean)jtrue;
  JCGO_FIELD_NZACCESS(This, surface)= surface;
  (void)max_7e1;
  JCGO_FIELD_NZACCESS(This, controlShown)= (jbooleanArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jboolean),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlListScrollbarHandleDragged)= (jbooleanArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jboolean),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlMaskText)= (jbooleanArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jboolean),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlClicked)= (jbooleanArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jboolean),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour)= (jbooleanArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jboolean),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlFlashText)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlListEntryCount)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlListEntryMouseOver)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlX)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlY)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlType)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlWidth)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlHeight)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlInputMaxLen)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlTextSize)= (jintArr)jcgo_newArray(JCGO_CORECLASS_FOR(OBJT_jint),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlText)= (jObjectArr)jcgo_newArray(JCGO_CLASSREF_OF(java_lang_String__class),
   0, max_7e1);
  JCGO_FIELD_NZACCESS(This, controlListEntries)= (jObjectArr)jcgo_newArray(JCGO_CLASSREF_OF(java_lang_String__class),
   1, max_7e1);
  JCGO_FIELD_NZACCESS(This, colourScrollbarTop)= (package_Panel__rgb2longMod__III(
   This, (jint)114, (jint)114, (jint)176));
  JCGO_FIELD_NZACCESS(This, colourScrollbarBottom)= (package_Panel__rgb2longMod__III(
   This, (jint)14, (jint)14, (jint)62));
  JCGO_FIELD_NZACCESS(This, colourScrollbarHandleLeft)= (package_Panel__rgb2longMod__III(
   This, (jint)200, (jint)208, (jint)232));
  JCGO_FIELD_NZACCESS(This, colourScrollbarHandleMid)= (package_Panel__rgb2longMod__III(
   This, (jint)96, (jint)129, (jint)184));
  JCGO_FIELD_NZACCESS(This, colourScrollbarHandleRight)= (package_Panel__rgb2longMod__III(
   This, (jint)53, (jint)95, (jint)115));
  JCGO_FIELD_NZACCESS(This, colourRoundedBoxOut)= (package_Panel__rgb2longMod__III(
   This, (jint)117, (jint)142, (jint)171));
  JCGO_FIELD_NZACCESS(This, colourRoundedBoxMid)= (package_Panel__rgb2longMod__III(
   This, (jint)98, (jint)122, (jint)158));
  JCGO_FIELD_NZACCESS(This, colourRoundedBoxIn)= (package_Panel__rgb2longMod__III(
   This, (jint)86, (jint)100, (jint)136));
  JCGO_FIELD_NZACCESS(This, colourBoxTopNBottom)= (package_Panel__rgb2longMod__III(
   This, (jint)135, (jint)146, (jint)179));
  JCGO_FIELD_NZACCESS(This, colourBoxTopNBottom2)= (package_Panel__rgb2longMod__III(
   This, (jint)97, (jint)112, (jint)151));
  JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight2)= (package_Panel__rgb2longMod__III(
   This, (jint)88, (jint)102, (jint)136));
  JCGO_FIELD_NZACCESS(This, colourBoxLeftNRight)= (package_Panel__rgb2longMod__III(
   This, (jint)84, (jint)93, (jint)120));
 }
 return This;
}

JCGO_NOSEP_FRWINL package_Panel CFASTCALL
package_Panel__new__L0s0x4I( package_Surface surface, jint max_7e1
 )
{
 return package_Panel__this__L0s0x4I(
  (package_Panel)jcgo_newObject((jvtable)&package_Panel_methods), surface,
  max_7e1);
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__rgb2longMod__III( package_Panel This, jint i, jint
 j, jint k )
{
 {
  return (package_Surface__rgb2long__III(
   (package_Panel__redMod * i) / (jint)114, (package_Panel__greenMod *
   j) / (jint)114, (package_Panel__blueMod * k) / (jint)176));
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__handleMouse__IIII( package_Panel This, jint mx, jint
 my, jint lastmb, jint mbdown )
{
 {
  JCGO_FIELD_NZACCESS(This, mouseX)= mx;
  JCGO_FIELD_NZACCESS(This, mouseY)= my;
  JCGO_FIELD_NZACCESS(This, mouseButtonDown)= mbdown;
  if (lastmb != 0)
  {
   JCGO_FIELD_NZACCESS(This, mouseLastButtonDown)= lastmb;
  }
  if (lastmb == (jint)1)
  {
   {
    jint i1;
    i1= 0;
    for (; i1 < JCGO_FIELD_NZACCESS(This, controlCount); i1++)
    {
     jint jcgo_rcvrI1;
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown),
      i1) && JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
      i1) == (jint)10 && JCGO_FIELD_NZACCESS(This, mouseX) >= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlX), i1) && JCGO_FIELD_NZACCESS(This, mouseY) >= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlY), i1) && JCGO_FIELD_NZACCESS(This, mouseX) <= (jcgo_rcvrI1=
      JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), i1),
      jcgo_rcvrI1 + JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth),
      i1)) && JCGO_FIELD_NZACCESS(This, mouseY) <= (jcgo_rcvrI1= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlY), i1), jcgo_rcvrI1 + JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlHeight), i1)))
     {
      JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked),
       i1)= (jboolean)jtrue;
     }
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown),
      i1) && JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
      i1) == (jint)14 && JCGO_FIELD_NZACCESS(This, mouseX) >= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlX), i1) && JCGO_FIELD_NZACCESS(This, mouseY) >= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlY), i1) && JCGO_FIELD_NZACCESS(This, mouseX) <= (jcgo_rcvrI1=
      JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), i1),
      jcgo_rcvrI1 + JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth),
      i1)) && JCGO_FIELD_NZACCESS(This, mouseY) <= (jcgo_rcvrI1= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlY), i1), jcgo_rcvrI1 + JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlHeight), i1)))
     {
      jint jcgo_rcvrI1;
      (jcgo_rcvrI1= (jint)1 - JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
       controlListEntryMouseButtonDown), i1), JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
       controlListEntryMouseButtonDown), i1)= jcgo_rcvrI1);
     }
    }
   }
  }
  if (mbdown == (jint)1)
  {
   JCGO_FIELD_NZACCESS(This, mouseMetaButtonHeld)++;
  }
  else
  {
   JCGO_FIELD_NZACCESS(This, mouseMetaButtonHeld)= 0;
  }
  if (lastmb == (jint)1 || JCGO_FIELD_NZACCESS(This, mouseMetaButtonHeld) >
   (jint)20)
  {
   {
    jint j1;
    j1= 0;
    for (; j1 < JCGO_FIELD_NZACCESS(This, controlCount); j1++)
    {
     jint jcgo_rcvrI1;
     if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown),
      j1) && JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
      j1) == (jint)15 && JCGO_FIELD_NZACCESS(This, mouseX) >= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlX), j1) && JCGO_FIELD_NZACCESS(This, mouseY) >= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlY), j1) && JCGO_FIELD_NZACCESS(This, mouseX) <= (jcgo_rcvrI1=
      JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), j1),
      jcgo_rcvrI1 + JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth),
      j1)) && JCGO_FIELD_NZACCESS(This, mouseY) <= (jcgo_rcvrI1= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlY), j1), jcgo_rcvrI1 + JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
      controlHeight), j1)))
     {
      JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked),
       j1)= (jboolean)jtrue;
     }
    }
   }
   JCGO_FIELD_NZACCESS(This, mouseMetaButtonHeld)-= (jint)5;
  }
 }
}

JCGO_NOSEP_STATIC jboolean CFASTCALL
package_Panel__isClicked__I( package_Panel This, jint i )
{
 {
  if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), i) &&
   JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), i))
  {
   JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), i)=
    (jboolean)jfalse;
   return (jboolean)jtrue;
  }
  else
  {
   return (jboolean)jfalse;
  }
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__keyPress__I( package_Panel This, jint key )
{
 {
  if (key == 0)
  {
   return;
  }
  if (JCGO_FIELD_NZACCESS(This, focusControlIndex) != (-(jint)1) &&
   ((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlText), JCGO_FIELD_NZACCESS(This, focusControlIndex))) !=
   jnull && JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown),
   JCGO_FIELD_NZACCESS(This, focusControlIndex)))
  {
   java_lang_String s;
   jint inputLen;
   jObject jcgo_rcvrL1;
   inputLen= (jcgo_rcvrL1= (jObject)((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
    controlText), JCGO_FIELD_NZACCESS(This, focusControlIndex))), JCGO_CALL_FINALF((java_lang_String)jcgo_rcvrL1)
    java_lang_String__length__(
    (java_lang_String)jcgo_rcvrL1));
   if (key == (jint)8 && inputLen > 0)
   {
    jObject jcgo_rcvrL1;
    jObject jcgo_rcvrL2;
    jObject jcgo_rcvrL3;
    jint jcgo_rcvrI1;
    (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, controlText),
     jcgo_rcvrI1= JCGO_FIELD_NZACCESS(This, focusControlIndex), jcgo_rcvrL2=
     (jObject)(jcgo_rcvrL3= (jObject)((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
     controlText), JCGO_FIELD_NZACCESS(This, focusControlIndex))),
     JCGO_CALL_FINALF((java_lang_String)jcgo_rcvrL3) java_lang_String__substring__II(
     (java_lang_String)jcgo_rcvrL3, 0, inputLen - (jint)1)), *(java_lang_String*)&JCGO_ARRAY_LACCESS((jObjectArr)jcgo_rcvrL1,
     jcgo_rcvrI1)= (java_lang_String)jcgo_rcvrL2);
   }
   if ((key == (jint)10 || key == (jint)13) && inputLen > 0)
   {
    JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
     focusControlIndex))= (jboolean)jtrue;
   }
   s= JCGO_STRREF_OF(jcgo_string4_PanelA73);
   if (inputLen < JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlInputMaxLen),
    JCGO_FIELD_NZACCESS(This, focusControlIndex)))
   {
    {
     jint k;
     k= 0;
     for (; k < (java_lang_String__length__(
      s)); k++)
     {
      if (key == (jint)(java_lang_String__charAt__I(
       s, k)))
      {
       jObject jcgo_rcvrL1;
       jObject jcgo_rcvrL2;
       (jcgo_rcvrL2= *(jObject*)(jcgo_rcvrL1= (void*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
        controlText), JCGO_FIELD_NZACCESS(This, focusControlIndex))),
        *(java_lang_String*)jcgo_rcvrL1= java_lang_VMSystem__concat0X__LsLs(
        (java_lang_String)jcgo_rcvrL2, (java_lang_String__valueOf__C(
        (jchar)key))));
      }
     }
    }
   }
   if (key == (jint)9)
   {
    do
    {
     JCGO_FIELD_NZACCESS(This, focusControlIndex)= jcgo_mod((JCGO_FIELD_NZACCESS(This,
      focusControlIndex) + (jint)1), JCGO_FIELD_NZACCESS(This, controlCount));
    }
     while (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
     JCGO_FIELD_NZACCESS(This, focusControlIndex)) != (jint)5 && JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
     controlType), JCGO_FIELD_NZACCESS(This, focusControlIndex)) !=
     (jint)6);
   }
  }
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__drawPanel__( package_Panel This )
{
 {
  {
   jint i;
   i= 0;
   for (; i < JCGO_FIELD_NZACCESS(This, controlCount); i++)
   {
    if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown),
     i))
    {
     if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
      i) == 0)
     {
      jObject jcgo_rcvrL1;
      jint jcgo_rcvrI1;
      jint jcgo_rcvrI2;
      jint jcgo_rcvrI3;
      (jcgo_rcvrI1= i, jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
       controlX), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
       controlY), i), jcgo_rcvrL1= (jObject)((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
       controlText), i)), package_Panel__drawText__IIILsI(
       This, (java_lang_String)jcgo_rcvrL1, jcgo_rcvrI1, jcgo_rcvrI2,
       jcgo_rcvrI3, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize),
       i)));
     }
     else
     {
      if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
       i) == (jint)1)
      {
       jObject jcgo_rcvrL1;
       jObject jcgo_rcvrL2;
       jint jcgo_rcvrI1;
       jint jcgo_rcvrI2;
       jint jcgo_rcvrI3;
       (jcgo_rcvrI1= i, jcgo_rcvrI2= (jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
        controlX), i), jcgo_rcvrI2 - (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
        surface), jcgo_rcvrL2= (jObject)((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
        controlText), i)), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
        package_Surface__textWidth__LsI(
        (package_Surface)jcgo_rcvrL1, (java_lang_String)jcgo_rcvrL2,
        JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize),
        i))) / (jint)2), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
        controlY), i), jcgo_rcvrL1= (jObject)((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
        controlText), i)), package_Panel__drawText__IIILsI(
        This, (java_lang_String)jcgo_rcvrL1, jcgo_rcvrI1, jcgo_rcvrI2,
        jcgo_rcvrI3, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize),
        i)));
      }
      else
      {
       if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
        i) == (jint)2)
       {
        jint jcgo_rcvrI1;
        jint jcgo_rcvrI2;
        jint jcgo_rcvrI3;
        (jcgo_rcvrI1= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
         controlX), i), jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
         controlY), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
         controlWidth), i), package_Panel__drawBox__IIII(
         This, jcgo_rcvrI1, jcgo_rcvrI2, jcgo_rcvrI3, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
         controlHeight), i)));
       }
       else
       {
        if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
         i) == (jint)3)
        {
         jint jcgo_rcvrI1;
         jint jcgo_rcvrI2;
         (jcgo_rcvrI1= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
          controlX), i), jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
          controlY), i), package_Panel__drawLineHoriz__III(
          This, jcgo_rcvrI1, jcgo_rcvrI2, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
          controlWidth), i)));
        }
        else
        {
         if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
          i) == (jint)4)
         {
          jObject jcgo_rcvrL1;
          jint jcgo_rcvrI1;
          jint jcgo_rcvrI2;
          jint jcgo_rcvrI3;
          jint jcgo_rcvrI4;
          jint jcgo_rcvrI5;
          jint jcgo_rcvrI6;
          jint jcgo_rcvrI7;
          (jcgo_rcvrI1= i, jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
           controlX), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
           controlY), i), jcgo_rcvrI4= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
           controlWidth), i), jcgo_rcvrI5= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
           controlHeight), i), jcgo_rcvrI6= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
           controlTextSize), i), jcgo_rcvrL1= (jObject)((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
           controlListEntries), i)), jcgo_rcvrI7= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
           controlListEntryCount), i), package_Panel__drawTextList__IIIIIILsAII(
           This, (jObjectArr)jcgo_rcvrL1, jcgo_rcvrI1, jcgo_rcvrI2,
           jcgo_rcvrI3, jcgo_rcvrI4, jcgo_rcvrI5, jcgo_rcvrI6, jcgo_rcvrI7,
           JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText),
           i)));
         }
         else
         {
          if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
           i) == (jint)5 || JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
           controlType), i) == (jint)6)
          {
           jObject jcgo_rcvrL1;
           jint jcgo_rcvrI1;
           jint jcgo_rcvrI2;
           jint jcgo_rcvrI3;
           jint jcgo_rcvrI4;
           jint jcgo_rcvrI5;
           (jcgo_rcvrI1= i, jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
            controlX), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
            controlY), i), jcgo_rcvrI4= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
            controlWidth), i), jcgo_rcvrI5= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
            controlHeight), i), jcgo_rcvrL1= (jObject)((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
            controlText), i)), package_Panel__drawTextInput__IIIIILsI(
            This, (java_lang_String)jcgo_rcvrL1, jcgo_rcvrI1, jcgo_rcvrI2,
            jcgo_rcvrI3, jcgo_rcvrI4, jcgo_rcvrI5, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
            controlTextSize), i)));
          }
          else
          {
           if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
            i) == (jint)7)
           {
            jint jcgo_rcvrI1;
            jint jcgo_rcvrI2;
            jint jcgo_rcvrI3;
            jint jcgo_rcvrI4;
            (jcgo_rcvrI1= i, jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
             controlX), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
             controlY), i), jcgo_rcvrI4= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
             controlTextSize), i), package_Panel__drawOptionListHoriz__IIIILsA(
             This, ((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
             controlListEntries), i)), jcgo_rcvrI1, jcgo_rcvrI2, jcgo_rcvrI3,
             jcgo_rcvrI4));
           }
           else
           {
            if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
             i) == (jint)8)
            {
             jint jcgo_rcvrI1;
             jint jcgo_rcvrI2;
             jint jcgo_rcvrI3;
             jint jcgo_rcvrI4;
             (jcgo_rcvrI1= i, jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
              controlX), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
              controlY), i), jcgo_rcvrI4= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
              controlTextSize), i), package_Panel__drawOptionListVert__IIIILsA(
              This, ((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
              controlListEntries), i)), jcgo_rcvrI1, jcgo_rcvrI2, jcgo_rcvrI3,
              jcgo_rcvrI4));
            }
            else
            {
             if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
              i) == (jint)9)
             {
              jObject jcgo_rcvrL1;
              jint jcgo_rcvrI1;
              jint jcgo_rcvrI2;
              jint jcgo_rcvrI3;
              jint jcgo_rcvrI4;
              jint jcgo_rcvrI5;
              jint jcgo_rcvrI6;
              jint jcgo_rcvrI7;
              (jcgo_rcvrI1= i, jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
               controlX), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
               controlY), i), jcgo_rcvrI4= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
               controlWidth), i), jcgo_rcvrI5= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
               controlHeight), i), jcgo_rcvrI6= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
               controlTextSize), i), jcgo_rcvrL1= (jObject)((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
               controlListEntries), i)), jcgo_rcvrI7= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
               controlListEntryCount), i), package_Panel__drawTextListInteractive__IIIIIILsAII(
               This, (jObjectArr)jcgo_rcvrL1, jcgo_rcvrI1, jcgo_rcvrI2,
               jcgo_rcvrI3, jcgo_rcvrI4, jcgo_rcvrI5, jcgo_rcvrI6,
               jcgo_rcvrI7, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
               controlFlashText), i)));
             }
             else
             {
              if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
               i) == (jint)11)
              {
               jint jcgo_rcvrI1;
               jint jcgo_rcvrI2;
               jint jcgo_rcvrI3;
               (jcgo_rcvrI1= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                controlX), i), jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                controlY), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                controlWidth), i), package_Panel__drawRoundedBox__IIII(
                This, jcgo_rcvrI1, jcgo_rcvrI2, jcgo_rcvrI3, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                controlHeight), i)));
              }
              else
              {
               if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
                i) == (jint)12)
               {
                jint jcgo_rcvrI1;
                jint jcgo_rcvrI2;
                (jcgo_rcvrI1= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                 controlX), i), jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                 controlY), i), package_Panel__drawPicture__III(
                 This, jcgo_rcvrI1, jcgo_rcvrI2, JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                 controlTextSize), i)));
               }
               else
               {
                if (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType),
                 i) == (jint)14)
                {
                 jint jcgo_rcvrI1;
                 jint jcgo_rcvrI2;
                 jint jcgo_rcvrI3;
                 jint jcgo_rcvrI4;
                 (jcgo_rcvrI1= i, jcgo_rcvrI2= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                  controlX), i), jcgo_rcvrI3= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                  controlY), i), jcgo_rcvrI4= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
                  controlWidth), i), package_Panel__drawCheckbox__IIIII(
                  This, jcgo_rcvrI1, jcgo_rcvrI2, jcgo_rcvrI3, jcgo_rcvrI4,
                  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight),
                  i)));
                }
               }
              }
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   }
  }
  JCGO_FIELD_NZACCESS(This, mouseLastButtonDown)= 0;
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__drawText__IIILsI( package_Panel This, java_lang_String
 text, jint control, jint x, jint y, jint textSize )
{
 {
  jint y2;
  jObject jcgo_rcvrL1;
  y2= y + (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface),
   JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1) package_Surface__textHeight__I(
   (package_Surface)jcgo_rcvrL1, textSize)) / (jint)3;
  (package_Panel__drawstring__IIILsI(
   This, text, control, x, y2, textSize));
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__drawstring__IIILsI( package_Panel This, java_lang_String
 text, jint control, jint x, jint y, jint textSize )
{
 {
  jint i1;
  jObject jcgo_rcvrL1;
  if (JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
   control))
  {
   i1= (jint)16777215L;
  }
  else
  {
   i1= 0;
  }
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawstring__LsIIII(
   (package_Surface)jcgo_rcvrL1, text, x, y, textSize, i1));
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__drawListContainer__IIIIII( package_Panel This, jint
 x, jint y, jint width, jint height, jint corner1, jint corner2 )
{
 {
  jint x2;
  jObject jcgo_rcvrL1;
  x2= (x + width) - (jint)12;
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawBoxEdge__IIIII(
   (package_Surface)jcgo_rcvrL1, x2, y, (jint)12, height, 0));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawSprite__III(
   (package_Surface)jcgo_rcvrL1, x2 + (jint)1, y + (jint)1, package_Panel__baseSpriteStart));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawSprite__III(
   (package_Surface)jcgo_rcvrL1, x2 + (jint)1, (y + height) - (jint)12,
   package_Panel__baseSpriteStart + (jint)1));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x2, y + (jint)13, (jint)12, 0));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineHoriz__IIII(
   (package_Surface)jcgo_rcvrL1, x2, (y + height) - (jint)13, (jint)12,
   0));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawGradient__IIIIII(
   (package_Surface)jcgo_rcvrL1, x2 + (jint)1, y + (jint)14, (jint)11,
   height - (jint)27, JCGO_FIELD_NZACCESS(This, colourScrollbarTop),
   JCGO_FIELD_NZACCESS(This, colourScrollbarBottom)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawBox__IIIII(
   (package_Surface)jcgo_rcvrL1, x2 + (jint)3, corner1 + y + (jint)14,
   (jint)7, corner2, JCGO_FIELD_NZACCESS(This, colourScrollbarHandleMid)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, x2 + (jint)2, corner1 + y + (jint)14,
   corner2, JCGO_FIELD_NZACCESS(This, colourScrollbarHandleLeft)));
  (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, surface), JCGO_CALL_FINALF((package_Surface)jcgo_rcvrL1)
   package_Surface__drawLineVert__IIII(
   (package_Surface)jcgo_rcvrL1, x2 + (jint)2 + (jint)8, corner1 +
   y + (jint)14, corner2, JCGO_FIELD_NZACCESS(This, colourScrollbarHandleRight)));
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addText__IILsIZ( package_Panel This, java_lang_String
 text, jint x, jint y, jint size, jboolean flag )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)1;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize), JCGO_FIELD_NZACCESS(This,
   controlCount))= size;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
   JCGO_FIELD_NZACCESS(This, controlCount))= (jboolean)flag;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= x;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= y;
  *(java_lang_String*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlText), JCGO_FIELD_NZACCESS(This, controlCount))= text;
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addButtonBackground__IIII( package_Panel This, jint
 x, jint y, jint width, jint height )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)2;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= (x - width / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= (y - height / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= width;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= height;
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addBoxRounded__IIII( package_Panel This, jint x, jint
 y, jint width, jint height )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)11;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= (x - width / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= (y - height / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= width;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= height;
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addSprite__III( package_Panel This, jint x, jint y,
 jint spriteId )
{
 {
  jint imgWidth;
  jint imgHeight;
  imgWidth= JCGO_ARRAY_IACCESS(JCGO_FIELD_ACCESS(package_Surface, JCGO_FIELD_NZACCESS(This,
   surface), spriteWidth), spriteId);
  imgHeight= JCGO_ARRAY_IACCESS(JCGO_FIELD_ACCESS(package_Surface,
   JCGO_FIELD_NZACCESS(This, surface), spriteHeight), spriteId);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)12;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= (x - imgWidth / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= (y - imgHeight / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= imgWidth;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= imgHeight;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize), JCGO_FIELD_NZACCESS(This,
   controlCount))= spriteId;
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addTextList__IIIIIIZ( package_Panel This, jint x, jint
 y, jint width, jint height, jint size, jint maxLength, jboolean flag
 )
{
 {
  jObject jcgo_rcvrL1;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)4;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= x;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= y;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= width;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= height;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
   JCGO_FIELD_NZACCESS(This, controlCount))= (jboolean)flag;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize), JCGO_FIELD_NZACCESS(This,
   controlCount))= size;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlInputMaxLen),
   JCGO_FIELD_NZACCESS(This, controlCount))= maxLength;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryCount),
   JCGO_FIELD_NZACCESS(This, controlCount))= 0;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText), JCGO_FIELD_NZACCESS(This,
   controlCount))= 0;
  (jcgo_rcvrL1= (jObject)((jObjectArr)jcgo_newArray(JCGO_CLASSREF_OF(java_lang_String__class),
   0, maxLength)), *(jObjectArr*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlListEntries), JCGO_FIELD_NZACCESS(This, controlCount))= (jObjectArr)jcgo_rcvrL1);
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_FRWINL jint CFASTCALL
package_Panel__addTextListInput__IIIIIIZZ( package_Panel This, jint
 x, jint y, jint width, jint height, jint size, jint maxLength, jboolean
 flag, jboolean flag1 )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)5;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlMaskText), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)flag;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize), JCGO_FIELD_NZACCESS(This,
   controlCount))= size;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
   JCGO_FIELD_NZACCESS(This, controlCount))= (jboolean)flag1;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= x;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= y;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= width;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= height;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlInputMaxLen),
   JCGO_FIELD_NZACCESS(This, controlCount))= maxLength;
  *(java_lang_String*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlText), JCGO_FIELD_NZACCESS(This, controlCount))= JCGO_STRREF_OF(jcgo_string3_String6D);
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addTextInput__IIIIIIZZ( package_Panel This, jint x,
 jint y, jint width, jint height, jint size, jint maxLength, jboolean
 flag, jboolean flag1 )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)6;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlMaskText), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)flag;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize), JCGO_FIELD_NZACCESS(This,
   controlCount))= size;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
   JCGO_FIELD_NZACCESS(This, controlCount))= (jboolean)flag1;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= x;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= y;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= width;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= height;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlInputMaxLen),
   JCGO_FIELD_NZACCESS(This, controlCount))= maxLength;
  *(java_lang_String*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlText), JCGO_FIELD_NZACCESS(This, controlCount))= JCGO_STRREF_OF(jcgo_string3_String6D);
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addTextListInteractive__IIIIIIZ( package_Panel This,
 jint x, jint y, jint width, jint height, jint textSize, jint maxLength,
 jboolean flag )
{
 {
  jObject jcgo_rcvrL1;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)9;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlTextSize), JCGO_FIELD_NZACCESS(This,
   controlCount))= textSize;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlUseAlternativeColour),
   JCGO_FIELD_NZACCESS(This, controlCount))= (jboolean)flag;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= x;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= y;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= width;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= height;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlInputMaxLen),
   JCGO_FIELD_NZACCESS(This, controlCount))= maxLength;
  (jcgo_rcvrL1= (jObject)((jObjectArr)jcgo_newArray(JCGO_CLASSREF_OF(java_lang_String__class),
   0, maxLength)), *(jObjectArr*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlListEntries), JCGO_FIELD_NZACCESS(This, controlCount))= (jObjectArr)jcgo_rcvrL1);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryCount),
   JCGO_FIELD_NZACCESS(This, controlCount))= 0;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText), JCGO_FIELD_NZACCESS(This,
   controlCount))= 0;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseButtonDown),
   JCGO_FIELD_NZACCESS(This, controlCount))= (-(jint)1);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseOver),
   JCGO_FIELD_NZACCESS(This, controlCount))= (-(jint)1);
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_STATIC jint CFASTCALL
package_Panel__addButton__IIII( package_Panel This, jint x, jint y,
 jint width, jint height )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlType), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jint)10;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jtrue;
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlClicked), JCGO_FIELD_NZACCESS(This,
   controlCount))= (jboolean)jfalse;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlX), JCGO_FIELD_NZACCESS(This,
   controlCount))= (x - width / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlY), JCGO_FIELD_NZACCESS(This,
   controlCount))= (y - height / (jint)2);
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlWidth), JCGO_FIELD_NZACCESS(This,
   controlCount))= width;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlHeight), JCGO_FIELD_NZACCESS(This,
   controlCount))= height;
  return JCGO_FIELD_NZACCESS(This, controlCount)++;
 }
}

JCGO_NOSEP_FRWINL void CFASTCALL
package_Panel__clearList__I( package_Panel This, jint control )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryCount),
   control)= 0;
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__resetListProps__I( package_Panel This, jint control
 )
{
 {
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText), control)=
   0;
  JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseOver),
   control)= (-(jint)1);
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__addListEntry__IILs( package_Panel This, java_lang_String
 text, jint control, jint index )
{
 {
  *(java_lang_String*)&JCGO_ARRAY_LACCESS(((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlListEntries), control)), index)= text;
  if (index + (jint)1 > JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This,
   controlListEntryCount), control))
  {
   JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryCount),
    control)= (index + (jint)1);
  }
 }
}

JCGO_NOSEP_STATIC void CFASTCALL
package_Panel__removeListEntry__ILsZ( package_Panel This, java_lang_String
 text, jint control, jboolean flag )
{
 {
  jint j;
  j= (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryCount),
   control))++;
  if (j >= JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlInputMaxLen),
   control))
  {
   j--;
   (JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryCount),
    control))--;
   {
    jint k;
    k= 0;
    for (; k < j; k++)
    {
     jObject jcgo_rcvrL1;
     (jcgo_rcvrL1= (jObject)((java_lang_String)JCGO_ARRAY_LACCESS(((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
      controlListEntries), control)), k + (jint)1)), *(java_lang_String*)&JCGO_ARRAY_LACCESS(((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
      controlListEntries), control)), k)= (java_lang_String)jcgo_rcvrL1);
    }
   }
  }
  *(java_lang_String*)&JCGO_ARRAY_LACCESS(((jObjectArr)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlListEntries), control)), j)= text;
  if (flag)
  {
   JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlFlashText),
    control)= (jint)999999L;
  }
 }
}

JCGO_NOSEP_FRWINL void CFASTCALL
package_Panel__updateText__ILs( package_Panel This, java_lang_String
 s, jint control )
{
 {
  *(java_lang_String*)&JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlText), control)= s;
 }
}

JCGO_NOSEP_STATIC java_lang_String CFASTCALL
package_Panel__getText__I( package_Panel This, jint control )
{
 {
  if (((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
   controlText), control)) == jnull)
  {
   return JCGO_STRREF_OF(jcgo_string5_String6D);
  }
  else
  {
   return ((java_lang_String)JCGO_ARRAY_LACCESS(JCGO_FIELD_NZACCESS(This,
    controlText), control));
  }
 }
}

JCGO_NOSEP_FRWINL void CFASTCALL
package_Panel__show__I( package_Panel This, jint control )
{
 {
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), control)=
   (jboolean)jtrue;
 }
}

JCGO_NOSEP_FRWINL void CFASTCALL
package_Panel__hide__I( package_Panel This, jint control )
{
 {
  JCGO_ARRAY_ZACCESS(JCGO_FIELD_NZACCESS(This, controlShown), control)=
   (jboolean)jfalse;
 }
}

JCGO_NOSEP_FRWINL void CFASTCALL
package_Panel__setFocus__I( package_Panel This, jint control )
{
 {
  JCGO_FIELD_NZACCESS(This, focusControlIndex)= control;
 }
}

JCGO_NOSEP_FRWINL jint CFASTCALL
package_Panel__getListEntryIndex__I( package_Panel This, jint control
 )
{
 {
  return JCGO_ARRAY_IACCESS(JCGO_FIELD_NZACCESS(This, controlListEntryMouseOver),
   control);
 }
}

JCGO_NOSEP_DATA CONST struct package_Panel_methods_s package_Panel_methods=
{
 JCGO_CLASSREF_OF(package_Panel__class),
 JCGO_GCJDESCR_INIT(package_Panel_s, controlListEntries)
 OBJT_package_Panel,
 (JCGO_OBJSIZE_T)sizeof(struct package_Panel_s),
 NULL,
 JCGO_CLINIT_INIT(0)
 0,
 java_lang_Object__equals__Lo,
 java_lang_Object__hashCode__,
 java_lang_Object__toString__,
 java_lang_Object__finalize__
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct package_Panel_class_s package_Panel__class
 JCGO_THRD_ATTRNONGC=
{
 {
  &java_lang_Class_methods,
  JCGO_MON_INIT
  JCGO_OBJREF_OF(*(java_lang_Object)&package_Panel_methods),
  JCGO_STRREF_OF(jcgo_string1_PanelA73),
  JCGO_CLASSREF_OF(java_lang_Object__class),
  ((jObjectArr)JCGO_OBJREF_OF(jcgo_array3_Object)),
  0x1
 }
};

JCGO_NOSEP_DATA jint package_Panel__baseSpriteStart= (jint)0;

JCGO_NOSEP_DATA CONST jint package_Panel__redMod= (jint)114;

JCGO_NOSEP_DATA CONST jint package_Panel__greenMod= (jint)114;

JCGO_NOSEP_DATA CONST jint package_Panel__blueMod= (jint)176;

JCGO_NOSEP_DATA jint package_Panel__textListEntryHeightMod= (jint)0;

JCGO_NOSEP_DATA jboolean package_Panel__drawBackgroundArrow ATTRIBNONGC=
 jtrue;

JCGO_NOSEP_DATA CONST jcgo_arrtype30_Object jcgo_array5_PanelA73=
{
 (jvtable)&jbyteArr_methods,
 JCGO_MON_INIT
 5,
 {
  (jbyte)(jchar)80/*'P'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)110/*'n'*/,
   (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)108/*'l'*/
 }
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string1_PanelA73
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array5_PanelA73),
 0, 5, (jint)0x49519e4L
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string2_PanelA73
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array676_VMSstmPr),
 0, 1, (jint)0x58L
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string3_PanelA73
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array791_Mdclnt),
 16, 2, (jint)0x400L
};

JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string4_PanelA73
 JCGO_THRD_ATTRNONGC=
{
 &java_lang_String_methods,
 JCGO_MON_INIT
 (java_lang_Object)JCGO_OBJREF_OF(jcgo_array49_GameShll),
 0, 95, (jint)0xed09cfeL
};

#ifdef CHKALL_Panel
#include "jcgochke.h"
#endif

#endif
