Reply to thread

As you have discovered, DoUpdate calls the Update method whose default implementation does nothing.


What you can do it override either the Process or Render method of your GUIWindow class and have something like:



[code]

public override void Process()

{

    base.Process();


    if(_tickLastRevealed != 0 && Environment.TickCount - _tickLastDelta > _tickLastRevealed)

        _itemLastRevealed.IconImageBig = "foo.png";

}

[/code]


in your OnAction override you'd need to have something like:


[code]

public override void OnAction(Action action)

{

    if(action.wID == Action.ActionType.ACTION_SELECT_ITEM)

    {

        _itemLastRevealed = _thumbnailPanel.SelectedListItem;

        _itemLastRevealed.IconImageBig = "foobar.png";

        _tickLastRevealed = Environment.TickCount;

    }


    ...

    ...

}

[/code]


Set _tickLastDelta to the number of milliseconds you want the revealed image to appear for, for instance 2.5 seconds would be 2500.


*** edit ***


I've just realized that I've misread your post :(.


Top Bottom