// A component to have multiple "pages" of different components. Class KFGUI_SwitchComponent extends KFGUI_MultiComponent; var protected int CurrentComponent; function PreDraw() { local byte j; ComputeCoords(); if(CurrentComponent<0 || CurrentComponent>=Components.Length) return; Components[CurrentComponent].Canvas = Canvas; for(j=0; j<4; ++j) Components[CurrentComponent].InputPos[j] = CompPos[j]; Components[CurrentComponent].PreDraw(); } function bool CaptureMouse() { if((CurrentComponent>=0 || CurrentComponent=0 && Num