Add ChatboxPanelManager to allow for more advanced chatbox inputs
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Abex
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
package net.runelite.rs.api;
|
||||
|
||||
import net.runelite.api.FontTypeFace;
|
||||
import net.runelite.mapping.Import;
|
||||
|
||||
public interface RSFontTypeFace extends FontTypeFace
|
||||
{
|
||||
@Import("getTextWidth")
|
||||
@Override
|
||||
int getTextWidth(String text);
|
||||
|
||||
@Import("verticalSpace")
|
||||
@Override
|
||||
int getBaseline();
|
||||
}
|
||||
@@ -104,8 +104,13 @@ public interface RSWidget extends Widget
|
||||
void setTextColor(int textColor);
|
||||
|
||||
@Import("opacity")
|
||||
@Override
|
||||
int getOpacity();
|
||||
|
||||
@Import("opacity")
|
||||
@Override
|
||||
void setOpacity(int opacity);
|
||||
|
||||
@Import("relativeX")
|
||||
@Override
|
||||
int getRelativeX();
|
||||
@@ -311,6 +316,26 @@ public interface RSWidget extends Widget
|
||||
@Override
|
||||
Object[] getOnLoadListener();
|
||||
|
||||
@Import("onDialogAbortListener")
|
||||
@Override
|
||||
void setOnDialogAbortListener(Object... args);
|
||||
|
||||
@Import("onKeyListener")
|
||||
@Override
|
||||
void setOnKeyListener(Object... args);
|
||||
|
||||
@Import("onMouseOverListener")
|
||||
@Override
|
||||
void setOnMouseOverListener(Object... args);
|
||||
|
||||
@Import("onMouseLeaveListener")
|
||||
@Override
|
||||
void setOnMouseLeaveListener(Object... args);
|
||||
|
||||
@Import("onTimerListener")
|
||||
@Override
|
||||
void setOnTimerListener(Object... args);
|
||||
|
||||
@Import("fontId")
|
||||
@Override
|
||||
int getFontId();
|
||||
@@ -350,4 +375,64 @@ public interface RSWidget extends Widget
|
||||
@Import("itemQuantityMode")
|
||||
@Override
|
||||
void setItemQuantityMode(int itemQuantityMode);
|
||||
|
||||
@Import("xPositionMode")
|
||||
@Override
|
||||
int getXPositionMode();
|
||||
|
||||
@Import("xPositionMode")
|
||||
@Override
|
||||
void setXPositionMode(int xpm);
|
||||
|
||||
@Import("yPositionMode")
|
||||
@Override
|
||||
int getYPositionMode();
|
||||
|
||||
@Import("yPositionMode")
|
||||
@Override
|
||||
void setYPositionMode(int ypm);
|
||||
|
||||
@Import("xTextAlignment")
|
||||
@Override
|
||||
int getXTextAlignment();
|
||||
|
||||
@Import("xTextAlignment")
|
||||
@Override
|
||||
void setXTextAlignment(int xta);
|
||||
|
||||
@Import("yTextAlignment")
|
||||
@Override
|
||||
int getYTextAlignment();
|
||||
|
||||
@Import("yTextAlignment")
|
||||
@Override
|
||||
void setYTextAlignment(int yta);
|
||||
|
||||
@Import("widthMode")
|
||||
@Override
|
||||
int getWidthMode();
|
||||
|
||||
@Import("widthMode")
|
||||
@Override
|
||||
void setWidthMode(int widthMode);
|
||||
|
||||
@Import("heightMode")
|
||||
@Override
|
||||
int getHeightMode();
|
||||
|
||||
@Import("heightMode")
|
||||
@Override
|
||||
void setHeightMode(int heightMode);
|
||||
|
||||
@Import("getFont")
|
||||
@Override
|
||||
RSFontTypeFace getFont();
|
||||
|
||||
@Import("filled")
|
||||
@Override
|
||||
boolean isFilled();
|
||||
|
||||
@Import("filled")
|
||||
@Override
|
||||
void setFilled(boolean filled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user